• 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: appendBytes memcpy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appendBytes memcpy


  • Subject: Re: appendBytes memcpy
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 01 Aug 2007 23:40:38 -0700


On Aug 1, 2007, at 10:58 PM, roger casaliƱas wrote:

largest single allocation? when you say single, do you mean one NSMutableData object?

I put a debug tracker on the length of the NSMutableData object and the largest value it got to before crashing is 745316412. Is that +-745MB?

Is there a way to remove used bytes from the earlier part of the buffer (the bytes that were appended earlier)? It's not possible for me to release the buffer since another thread is reading off of the buffer in a slow pace. I was wondering if the reader can take off the bytes it has read (so the buffer wont reach near a GB that fast)?

To me it sounds like memory mapping a file may make more sense for what you appear to be doing or a ring buffer (not knowing you exact usage model).


-Shawn



_______________________________________________

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: appendBytes memcpy (From: Shawn Erickson <email@hidden>)
 >Re: appendBytes memcpy (From: "roger casaliƱas" <email@hidden>)

  • Prev by Date: Re: appendBytes memcpy
  • Next by Date: Re: Releasing by reference
  • Previous by thread: Re: appendBytes memcpy
  • Next by thread: Change dragged image
  • Index(es):
    • Date
    • Thread