Skip to content

Allow for controlling whether the minimal model listing is included in the generated model #503

@chrispcampbell

Description

@chrispcampbell

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions