`toSVG` compiles tight bounding box calculation non-optionally
Author: griffintellerCreated Aug 1, 2024Updated Aug 1, 2024
Describe the bug
The toSVG function exported in Penrose's API compiles a rose function calculating a tight bounding box (used for the examples tab) on every call. This is usually not needed and very expensive, more than 90% of computation in my profiling.
Action
Make this step optional in the the toSVG.
Source: penrose/penrose