• 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
32/64-bit transition and memory expansion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

32/64-bit transition and memory expansion


  • Subject: 32/64-bit transition and memory expansion
  • From: Ben <email@hidden>
  • Date: Mon, 10 May 2010 22:45:01 +0100

I have been adapting an existing app to compile as a 32/64-bit universal, using the Apple doc "64-Bit Transition Guide for Cocoa".

All has been well and good until I got to the section on optimising memory performance. A quick look at Activity Monitor reports my app as using 26MB real memory (rsize) under 32-bit and 42MB running as 64-bit.

Running Instruments with ObjectAlloc reports a peak memory usage of the above values, dropping to around 2-5MB when idle.

Questions:
- Is Activity Monitor likely just reporting this high tide value?
- Is the increase in memory usage (of about 50%) normal?
- Either way, should I be concerned?

Lastly:
- HeapDiff reports the worst offender for memory expansion between 32/64-bit processes as NSCFDictionary. Instruments suggests it is CFBasicHash. Is CFBasicHash part of the internals for NSCFDictionary? Google doesn't have much info on this.


Thanks for any light shed on this

- Ben_______________________________________________

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: 32/64-bit transition and memory expansion
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Overriding text size in NSTextStorage
  • Next by Date: Re: How to setup idle timer in 64-bit 10.6?
  • Previous by thread: Re: CCHmacInit - key?
  • Next by thread: Re: 32/64-bit transition and memory expansion
  • Index(es):
    • Date
    • Thread