Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Simplify generated code #6

Closed
JimDaly opened this issue Sep 6, 2016 · 1 comment
Closed

Simplify generated code #6

JimDaly opened this issue Sep 6, 2016 · 1 comment
Assignees

Comments

@JimDaly
Copy link
Owner

JimDaly commented Sep 6, 2016

Rather than generate anonymous functions for getters and setters, add an internal function that matches the pattern so the generated code can simply apply the named internal function. This should reduce the size the library grows per added entity.

@JimDaly JimDaly self-assigned this Sep 10, 2016
@JimDaly
Copy link
Owner Author

JimDaly commented Sep 13, 2016

I did this and it cut 33 percent off of a library that contains all entities, functions, and actions. From 8MB to 5MB

@JimDaly JimDaly closed this as completed Sep 13, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant