These axis arguments can be generated lots of times for large plots. We can save time by caching them in a dictionary. For my large map test plot: ``` Before: 1.075 s (3393429 allocations: 183.49 MiB) After: 959.024 ms (3393294 allocations: 181.64 MiB) - 10% improvement in speed, small decrease in allocations TTFP Before: 7.543192 seconds (26.79 M allocations: 1.544 GiB, 3.89% gc time, 0.06% compilation time) TTFP After: 6.886222 seconds (23.58 M allocations: 1.355 GiB, 3.63% gc time, 0.07% compilation time) - 8% improvement in speed, 12% fewer allocations, 12% lower allocation amount ``` The cost of this is, I think, just 3-4 kb. Is there a function to read out the size in memory of a dictionary? `sizeof` for the dictionary itself just returns 64.
Plots
This is the DOI for all Versions, please follow the link to get the DOI for a specific version.
Created by Tom Breloff (@tbreloff)
Maintained by the JuliaPlots members
Plots is a plotting API and toolset. My goals with the package are:
- Powerful. Do more with less. Complex visualizations become easy.
- Intuitive. Stop reading so much documentation. Commands should "just work".
- Concise. Less code means fewer mistakes and more efficient development/analysis.
- Flexible. Produce your favorite plots from your favorite package, but quicker and simpler.
- Consistent. Don't commit to one graphics package, use the same code everywhere.
- Lightweight. Very few dependencies.
- Smart. Attempts to figure out what you want it to do... not just what you tell it.
Description
Languages
Julia
99.9%
Shell
0.1%