Open byorgey opened 9 years ago
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 guess I'm really not sure what I mean, beyond "diagrams-builder should be faster".
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.
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.