FROM : John Stiles
DATE : Thu Apr 26 23:36:20 2007
This is a bit confusing to me--the implementation of NSArray is inside the OS, right? So what do you mean by this? Do you have a custom subclass or something?
________________________________
From: cocoa-dev-bounces+jstiles=blizzard.<email_removed> on behalf of Philippe Mougin
Sent: Thu 4/26/2007 2:33 PM
To: <email_removed>
Subject: 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_removed>)
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_removed>
This email sent to <email_removed>
DATE : Thu Apr 26 23:36:20 2007
This is a bit confusing to me--the implementation of NSArray is inside the OS, right? So what do you mean by this? Do you have a custom subclass or something?
________________________________
From: cocoa-dev-bounces+jstiles=blizzard.<email_removed> on behalf of Philippe Mougin
Sent: Thu 4/26/2007 2:33 PM
To: <email_removed>
Subject: 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_removed>)
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_removed>
This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Philippe Mougin | Apr 26, 23:33 | |
| John Stiles | Apr 26, 23:36 | |
| Philippe Mougin | Apr 26, 23:51 |






Cocoa mail archive

