diagrams / diagrams-builder

Utilities for creating diagram-building tools
Other
12 stars 15 forks source link

Faster/optimized builds #19

Open byorgey opened 9 years ago

byorgey commented 9 years ago

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 commented 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?

byorgey commented 9 years ago

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

byorgey commented 9 years ago

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.