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

Generated source is always formatted #59

Open
pekim opened this issue May 4, 2019 · 1 comment
Open

Generated source is always formatted #59

pekim opened this issue May 4, 2019 · 1 comment

Comments

@pekim
Copy link
Contributor

pekim commented May 4, 2019

Formatting a generated file is nice. However it's causing me a performance problem during development.

I'm generating over 4,000,000 lines, spread over about 200 files, which takes 35 to 40 seconds. Profiling shows that most of this time is in jen. And a large part of the time in jen is spent in formatting the source.

I would like an option to not format the generated source.

@pekim
Copy link
Contributor Author

pekim commented May 4, 2019

Merge request #60 brings my code generation time down to about 12 seconds.

I suspect that the improvement is not all directly related to not formatting. It's quite likely that not formatting is reducing garbage collecting significantly in my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant