• 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: problem with dataWithContentsOfFile on Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with dataWithContentsOfFile on Lion


  • Subject: Re: problem with dataWithContentsOfFile on Lion
  • From: Wilker <email@hidden>
  • Date: Thu, 21 Jul 2011 19:36:10 -0300

Thanks guys, I changed to NSDataReadingMappedAlways, since I will read just
a little piece of data (which is generally really fast) is that ok, the
crash risk is really low, so, I mean my software can live with that.
---
Wilker LĂșcio
http://about.me/wilkerlucio/bio
Kajabi Consultant
+55 81 82556600



On Thu, Jul 21, 2011 at 5:30 PM, Greg Guerin <email@hidden> wrote:

> 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<http://lists.apple.com>
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/**mailman/options/cocoa-dev/**
>
> This email sent to email@hidden
>
_______________________________________________

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: problem with dataWithContentsOfFile on Lion (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: CGEventRef with function key
  • Next by Date: Re: Windows get released on 10.6, leak on 10.7
  • Previous by thread: Re: problem with dataWithContentsOfFile on Lion
  • Next by thread: Can keypaths contain array indexes?
  • Index(es):
    • Date
    • Thread