Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
olliej
3y ago
0 comments
Save
Share
It _might_ be easier just to use mmio and save any futzing around rewriting the actual code.
0 comments
1 comments · 1 top-level
top
newest
oldest
liuliu
3y 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.
j
/
k
navigate · click thread line to collapse