You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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
changed the title
(optionally?) use -O2
Faster/optimized builds
May 12, 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.The text was updated successfully, but these errors were encountered: