Re: problem with dataWithContentsOfFile on Lion
Re: problem with dataWithContentsOfFile on Lion
- Subject: Re: problem with dataWithContentsOfFile on Lion
- From: Greg Guerin <email@hidden>
- Date: Thu, 21 Jul 2011 13:30:04 -0700
Wilker wrote:
Before Lion, it really works well and fast, even on Wifi external
drive
(through Airport Extreme), but now it get's really slow... I did some
checks, and now its reading the entire file... instead of just read
128kb
(start and end). Anyone have an ideia on why its happening now? And
how to
make it works as before on Snow Leopard?
You could use fopen(), fseek(), fread(), fclose().
Who knows, it might even be faster, since it doesn't have to call mmap
(). Worst case, you call mmap() yourself.
-- GG
_______________________________________________
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