Re: The cost of using objects rather than plain C variables
Re: The cost of using objects rather than plain C variables
- Subject: Re: The cost of using objects rather than plain C variables
- From: Scott Ribe <email@hidden>
- Date: Sun, 07 Jul 2013 09:01:01 -0600
On Jul 7, 2013, at 1:33 AM, Vincent Habchi wrote:
> Is there any hope in the future to be able to store simple types like int or floats in NSArrays?
Why? What's wrong with a simple array?
(Or, I would argue, though it's not a popular strategy, what's wrong with std::vector?)
Now if you really want speed, stop converting from text to floats, convert the file to a binary format containing floats before your users have to load it.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
This email sent to email@hidden