dphfox / Fusion

A modern reactive UI library, built specifically for Roblox and Luau.
https://elttob.uk/Fusion/
MIT License
585 stars 102 forks source link

Test what an ideal scope pool size is #313

Open dphfox opened 8 months ago

dphfox commented 8 months ago

In #312 (later implemented by #273) a scope pool was implemented, to facilitate reuse of empty allocations across objects and reduce the load on the memory allocator when processing many callbacks that may or may not require the use of a scope.

Right now up to 16 scopes can be saved at a time, but testing is required to verify what an optimal number looks like for a realistic program.

dphfox commented 8 months ago

It would also be good to do ablation to compare against a baseline implementation which does not reuse scopes in this manner.