• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The cost of using objects rather than plain C variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: The cost of using objects rather than plain C variables
      • From: Vincent Habchi <email@hidden>
References: 
 >The cost of using objects rather than plain C variables (From: Vincent Habchi <email@hidden>)
 >Re: The cost of using objects rather than plain C variables (From: Ken Thomases <email@hidden>)
 >Re: The cost of using objects rather than plain C variables (From: Vincent Habchi <email@hidden>)

  • Prev by Date: Re: The cost of using objects rather than plain C variables
  • Next by Date: Re: The cost of using objects rather than plain C variables
  • Previous by thread: Re: The cost of using objects rather than plain C variables
  • Next by thread: Re: The cost of using objects rather than plain C variables
  • Index(es):
    • Date
    • Thread