Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant