Skip navigation.
 
mlRe: NSArray - waste of time?
FROM : Philippe Mougin
DATE : Thu Apr 26 23:33:41 2007

> There is also the footprint to consider, surely?
> A C-style array is likely to be much smaller than
> an NSArray of objects, particularly in the case of
> primitive data types such as floats vs NSNumber objects.


It depends how the NSArrays you deal with are implemented (remember 
that NSArray is a class cluster -- in other words, a semi-abstract 
class). For instance, in F-Script we make extensive usage of NSArrays 
(in particular arrays of NSNumbers), but we do so using an 
implementation that transparently make them as small and as fast as C-
style arrays, in most cases.

Philippe Mougin

Related mailsAuthorDate
mlRe: NSArray - waste of time? Philippe Mougin Apr 26, 23:33
mlRE: NSArray - waste of time? John Stiles Apr 26, 23:36
mlRe: NSArray - waste of time? Philippe Mougin Apr 26, 23:51