Closed
Description
Should improve perf due to better memory allocation vs repeatedly pushing.
See #2145 (comment) by @NathanSWard for more details.
If you want to tackle this, either wait until #2145 is merged or work off that branch, as it changes the code organization of that file.