• 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: Mac Pro memory sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac Pro memory sizes


  • Subject: Re: Mac Pro memory sizes
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 12 Jan 2009 15:48:52 -0800

On 12 Jan 09, at 14:51, Schultz Keith J. wrote:
Far as stuffing two 32-bit values into a 64-bit value to avoid possible context
switching is probaly a very bad trade off as the handling to such values and doing
any kind of math with will hurt you badly speed wise with no space savings.

"Premature optimization is the root of all evil." -- Knuth

Optimization for space, in this case. Simply declaring the array to contain 32-bit values is just as efficient in terms of storage space, and it will probably perform better (as well as being easier to write).

Of course if you can do the math with bitwise operation directly you could process
two integers at one time. But, I do not know exactly what you are up to.

If speed is actually a concern, vector operations are *much* more efficient for this sort of thing than any bitwise hacks could possibly be. Look up Accelerate.framework for details.
_______________________________________________


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


References: 
 >Re: Mac Pro memory sizes (From: julius <email@hidden>)
 >Re: Mac Pro memory sizes (From: "Schultz Keith J." <email@hidden>)

  • Prev by Date: Re: Mac Pro memory sizes
  • Next by Date: Re: @loader_path and @executable_path
  • Previous by thread: Re: Mac Pro memory sizes
  • Next by thread: Re: Mac Pro memory sizes
  • Index(es):
    • Date
    • Thread