Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray - waste of time?




> 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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.