Closed bertini97 closed 2 months ago
Legend code is relatively complex, so I'm not surprised it allocates quite a bit. If you're motivated to optimize things, I'm happy about a PR.
But I think if you btime the call then it will add many legends to a single figure and this will probably in itself get slower and slower
Ah, bummer. I hoped it was some obvious bug. Right now, I don't know where to look for. Should I close the issue?
Yeah I think then it doesn't sound actionable or concrete enough.
]activate --temp; add Makie
)The profiler told me most of the allocations in my long script came from
axislegend()
and I didn't want to believe it, but upon closer benchmarking it apparently is the source of a huge number of allocations