In #501 we made it so that a minimal model listing is bundled with the generated model, which makes it possible to create a LookupDef without manually initializing a ModelListing. This increases the size of the generated model, but most projects will not need this functionality, so we should either make it opt-in or opt-out. I'm leaning towards making it opt-in.
Related to the above, in #472 we added support for overriding lookups at runtime, which resulted in the code generator (for both C and JS) unconditionally including a setLookup function that has a case statement for every data or lookup variable in the model. This also increases the size of the generated model, and most projects will not need this functionality, so this should also be made an opt-in thing.
In #501 we made it so that a minimal model listing is bundled with the generated model, which makes it possible to create a
LookupDefwithout manually initializing aModelListing. This increases the size of the generated model, but most projects will not need this functionality, so we should either make it opt-in or opt-out. I'm leaning towards making it opt-in.Related to the above, in #472 we added support for overriding lookups at runtime, which resulted in the code generator (for both C and JS) unconditionally including a
setLookupfunction that has a case statement for every data or lookup variable in the model. This also increases the size of the generated model, and most projects will not need this functionality, so this should also be made an opt-in thing.