Inquisitive Cocoa

Unless otherwise stated all code is released under the MIT License
27th December ‘09

NSCache is slow

Really slow according to Shark:

NSCache.png

Apparently inserting an object into NSCache is 50x slower than a regular NSMutableDictionary! It’s possible Shark might not be reporting the figures accurately.

My current work-around is to store up additions to the NSCache so that they can be inserted at a later time, when processing power is at less of a premium. Yes, shoot me. I’ve subclassed NSCache.

Personal

Add your thoughts