Articles tagged "performance tests"
-
QuartzGL was introduced as an official feature in Mac OS X 10.5 Leopard (although it was a developer-only feature in Mac OS X 10.4 as Quartz 2D Extreme). However, it is off by default and is largely ignored by most developers. In this post, I look at how to enable QuartzGL, the performance impact it has on different kinds of drawing and whether you should use it in your Mac programs.
-
In this post, I'll show you how you can create objects without using the standard instance allocation process (either
+[NSObject alloc]
orclass_createInstance()
). I'll also explain why you might do this — the benefits and drawbacks to a custom object creation process. -
You don't have to look far to find people suggesting that constructing views in code will increase the speed of your program. Since interface performance is a serious concern in iPhone development, I thought I'd look at the performance speed in creating complex iPhone UITableViewCells in code versus loading them from a NIB file.
-
As fast as computers are, heavy use of floating point functions can still slow them down. One way around this, is to use a lookup table instead of calculating floating point values at runtime. But keeping a generated table up-to-date is annoying work. In this post, I'll show you how to create a lookup table automatically using a custom build rule, making an OpenGL animation 5 times faster in the process.
-
This post is a response to reader questions asking how, in my previous post on Replacing Core Data Key Paths, I knew that the biggest performance problem in my initial approach was the incremental reallocation of
NSMutableSet
. In this post, I'll look at basic time and memory profiling on the Mac and talk about the most common types of scenario to look for when you're trying to solve performance problems. -
Not all Xcode project templates are alike. Especially the Core Data Command Line Tool...
-
In Mac OS X 10.5, Core Data switched from using
valueForKey:
as the recommended way to access Core Data attributes and relationships to auto-generated accessor methods. This new approach is faster for fetching values but lacksNSKeyValueCoding
's ability to coalesce the values extracted from every object in a "to-many" relationship in a single statement. In this post, I'll look at replacing theNSSet
traversal andNSSet
coalescing abilities offered byNSKeyValueCoding
with an approach that invokes accessor methods directly to see if I can bring some of the performance improvement of auto-generated accessor methods to situations involvingNSSet
traversals.