byte-motion / byte-motion/RNL_RAPIDLibrary

Standardize list handling (Front-Loading of valid data)

Open
#37 11 comments 0 reactions 1 assignee Claimed by @RobotSigmund View on GitHub
Programming rules/guides
Dominant language
AMPL
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

It is probably beneficial to standardize the way lists should be handled.

one question of this concern whether to require all lists to be sorted or not.
by sorted I mean that the list is front-loaded with the in-use values. as RAPID does not allow for variable-length lists, there is usually going to be data in the list that is not in use. looping over this is unnecessary performance loss in larger lists.
by front-loading the lists with the in-use data, you can stop looping through when you hit the first unused data, BUT you get some overhead in shifting the data over once you remove an entry, and added complexity in using the lists.

which method do we believe is best?

@RobotSigmund
@AGus-RN
adding this to the agenda for the next meeting

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.