mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
![]() Instead of cloning the vector on every iteration level, pass the scope in and out of the visitation function and push/pop the element there as needed. This way we can operate on a single vector that gets moved around, which removes a few thousand memory allocations. The speed impact is not measurable, as the code also triggers rowan API that is much more allocation happy. Still, I believe this patch is still merge-worthy as it also reduces the code duplication a bit and is subjectively better, esp. from a performance pov. |
||
---|---|---|
.. | ||
backends | ||
common | ||
compiler | ||
core | ||
core-macros | ||
interpreter | ||
renderers |