This improves the internal iteration by up to a factor of 5.

It's still a bit slow, though.

@tinwelint Why do we have the extra null check there? As far as I can see, the other implementations don't do that.

There might be more that can be done to improve the iteration performance. We might also not have measured everything interesting. The benchmark I used is here:

https://github.com/chrisvest/primitive-collections-benchmark