Y
Hacker News
new
|
ask
|
show
|
jobs
by
olliej
1310 days ago
It _might_ be easier just to use mmio and save any futzing around rewriting the actual code.
1 comments
liuliu
1308 days ago
Yeah, I thought Data(contentsOf:) already do that, but it appears not (tested, indeed allocated all the memory to load the data). Adding `mapIfSafe` in the reading options solved this.
link