taffy icon indicating copy to clipboard operation
taffy copied to clipboard

Reduce number of `Vec`s allocated in `perform_absolute_layout_on_absolute_children`

Open TimJentzsch opened this issue 3 years ago • 0 comments

What problem does this solve or what need does it fill?

Reduce number of Vecs generated in perform_absolute_layout_on_absolute_children in the flexbox algorithm: https://github.com/DioxusLabs/taffy/blob/e75a55f57946eeffb1a436925c88213c1102e57f/src/flexbox.rs#L1404-L1410

What solution would you like?

Whatever works best regarding the benchmarks.

What alternative(s) have you considered?

We can leave it as-is.

Additional context

This should be implemented (or at least merged) after #128 such that we can assess whether the changes actually improve performance.

TimJentzsch avatar Jun 16 '22 12:06 TimJentzsch