Re: appendBytes memcpy
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