> On Dec 6, 2016, at 12:31 PM, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Dec 6, 2016, at 12:32 AM, Alastair Houghton <alast...@alastairs-place.net >> <mailto:alast...@alastairs-place.net>> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com