• 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: [Q] large flat files usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] large flat files usage


  • Subject: Re: [Q] large flat files usage
  • From: Phillip Morelock <email@hidden>
  • Date: Wed, 19 Jun 2002 17:49:17 -0700

> Read-only for 10M is easy--just map it. Use +[NSData
> dataWithContentsOfMappedFile:], and let the buffer cache do your work

Thanks, I'll check that out.

I'm guessing:
- (void)getBytes:(void *)buffer range:(NSRange)range

will be my friend? If I understand correctly, the file gets mapped to VM
space, but pages are only copied to physical memory frames on-demand?

Thanks again.

fillup


On 6/19/02 5:13 PM, "Douglas Davidson" <email@hidden> wrote:

> On Wednesday, June 19, 2002, at 04:44 PM, Phillip Morelock wrote:
>
>> I'm leaning toward writing the first go-round as read-only, so I don't
>> even
>> have to deal with reupdating indices and inserting changes into the
>> middle
>> of flat files until I absolutely am required to.
>
> Read-only for 10M is easy--just map it. Use +[NSData
> dataWithContentsOfMappedFile:], and let the buffer cache do your work
> for you.
>
> Douglas Davidson
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [Q] large flat files usage
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: [Q] large flat files usage (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Editable NSBrowser (Still Broken)
  • Next by Date: Re: [Q] large flat files usage
  • Previous by thread: Re: [Q] large flat files usage
  • Next by thread: Re: [Q] large flat files usage
  • Index(es):
    • Date
    • Thread