mirror of https://github.com/sveltejs/svelte
We noticed that there was a large amount of memory being created as part of the flush method, which seems to be due to some array optimizations in old JS engines. This seems to be easily fixed by changing to a simple for loop instead of a while loop that modifies the array during iteration. This is the same pattern that is used for the `render_callbacks`.pull/4356/head
parent
3cbe38cbf1
commit
45053c26e3
Loading…
Reference in new issue