Re: Large "Data" support
Re: Large "Data" support
- Subject: Re: Large "Data" support
- From: Daryle Walker <email@hidden>
- Date: Thu, 15 Dec 2016 22:17:17 -0500
> On Dec 6, 2016, at 12:31 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Dec 6, 2016, at 12:32 AM, Alastair Houghton <email@hidden <mailto:email@hidden>> wrote:
>>
>> 1. If you mmap() data, you don’t actually have to read all of it; it’s read from disk on demand.
>
> I was assuming Daryle wanted to create the Data from scratch, not read it from a file. If the data is read from a file, then I agree with you 100%.
No, the plan is read-only, potentially from a huge file. I’ve been looking at the Swift 3 stuff now, and “Data” initializer takes the same parameters as "NS(Mutable)Data," including memory-mapping.
I’m working on Mac applications, BTW. (Cranky Old Man mode: that used to be assumed; now it’s the other way around (i.e. iPhone & friends unless I specify). Just ticked off that I skipped a lot of the WWDC 2016 videos from my binge since they were iPhone & friends oriented. And the first third of the last Mac announcement was a future AppleTV app. And get off my lawn.)
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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