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

Faster/optimized builds #19

Open
byorgey opened this issue May 9, 2015 · 3 comments
Open

Faster/optimized builds #19

byorgey opened this issue May 9, 2015 · 3 comments

Comments

@byorgey
Copy link
Member

byorgey commented May 9, 2015

When interpreting diagrams, diagrams-builder doesn't use any sort of optimization. I have just run into a case where this makes a really big difference, i.e. compiling a blog post takes a few seconds with -O2 and upwards of a minute without.

@cchalmers
Copy link
Member

Being able to use -O2 for big diagrams would be nice. Can you do it for interpreted files? I know ghci can load compiled files (which is faster but nowhere near -O2), but I don't know if hint can. Or do you mean include the diagram rendering the temporary file we make and run that with -O2, without interpreting?

@byorgey
Copy link
Member Author

byorgey commented May 9, 2015

I guess I'm really not sure what I mean, beyond "diagrams-builder should be faster".

@byorgey
Copy link
Member Author

byorgey commented May 12, 2015

I looked into this a bit, and you're right that it's not as straightforward as I thought. As things stand, since we are interpreting via hint, doing optimization is not really possible. Maybe we should look into this in the context of the new builder stuff.

@byorgey byorgey changed the title (optionally?) use -O2 Faster/optimized builds May 12, 2015
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

2 participants