only a few hundred kb into the file.
xxx ^ x
The time hit comes from copying the trim data to the NSData. Is there
a better way to do this with NSFileHandle? Is there a better way to
do this than NSFileHandle?
thanks for any thoughts,
Jaime Magiera
Sensory Research
http
hundred kb into a the file at a location only a few hundred kb into
the file.
xxx ^ x
The time hit comes from copying the trim data to the NSData. Is
there a better way to do this with NSFileHandle? Is there a better
way to do this than NSFileHandle?
I suspect your
On Jan 30, 2009, at 11:08 AM, Keary Suska wrote:
I suspect your bottleneck is the filesystem. To know for sure you
could try the raw C calls and see if it speeds up. In any case,
instead of doing a grow/shrink on the file, write to a temp file
instead then swap them. This way you could
? Is there a better
way to do this than NSFileHandle?
Not without changing the structure of your file. There's no way to
shift the contents of a file in the way you're looking for - UNIX
file systems aren't structured in a way that permits that. (In fact,
I'm not aware of any that are.) You'll need