Somewhere out there on the internet, there’s a “showdown” between @synchronized, NSLock, pthread mutexes, and OSSpinLock. It aims to measure their performance relative to each other, but uses sloppy code to perform the measuring. As a result, while the performance ordering is correct (@synchronized is the slowest, OSSpinLock is the fastest), the relative cost is severely misrepresented. Herein I attempt to rectify that benchmark.
2009.09.23
2009.09.12
CollegeAdvantage referral bonus again
Last year, CollegeAdvantage’s 529 college savings plan offered a referral bonus where those opening new accounts, as well as those referring them, received $25 bonuses. They’ve recently reinstated that bonus, so I figured I’d post some shameless self-promoting in the hopes of getting y’all some free college savings (for kids, etc), and get some for me as well (for our future children). (more…)
2009.09.05
alloc, allocWithZone showdown
This brief post will explore some more mundane (but still measurable!) aspects of optimizing Objective-C software. This time around, we’ll talk about object allocation. (more…)