vinnycoyne.com
Magical adventures in nerdery.

31 March 2014

Exposing NSMutableArray

https://ciechanowski.me/blog/2014/03/05/exposing-nsmutablearray/

Inserting object at index 0 uses the circular buffer magic to put thenewly inserted object at the end of the buffer[…] This is fantasticnews! It means that __NSArrayM can be processed from either side. You can use __NSArrayM as either stack or queue without anyperformance hits.

This is a fascinating deep-dive into how NSMutableArray works.


← Back | 🔗 Permalink