Created attachment 559040 [details] [diff] [review]
Comment on attachment 559040 [details] [diff] [review]
So the idea is to allocate a reasonable amount of space at the start instead of allocating later in smaller pieces?
The idea is to have an 8-element array on the stack so we don't have to heap-allocate at all.
(which is slower and could cause fragmentation)
Could we enforce this by making the callee signatures explicitly list an nsTArray, just in case another caller gets added? And if so, do we want to?
We could enforce it, but it's probably not worth it.