Perpendiculous Programming, Personal Finance, and Personal musings


@synchronized, NSLock, pthread, OSSpinLock showdown, done right

Filed under: Uncategorized — cwright @ 1:19 am

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.



CollegeAdvantage referral bonus again

Filed under: Uncategorized — cwright @ 1:33 pm

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…)


alloc, allocWithZone showdown

Filed under: Uncategorized — cwright @ 8:14 am

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…)

Powered by WordPress  •  Hosted by Kosada