tiby312 / poloto-project

MIT License
158 stars 10 forks source link

Add advice on using into_boxed() #160

Closed tiby312 closed 2 years ago

tiby312 commented 2 years ago

If you make plots many times, you may want to call into_boxed() on RenderablePlotIterator right before passing it to the render pipeline. This way you don't end up with many different code gen paths of the render code. Use cargo bloat and see if this is a problem.

tiby312 commented 2 years ago

I updated the internal render function to use as_mut_dyn() so ensure minimal code bloat.