4 ms·
The author said he tried `String(file.availableData, encoding: .utf8)` but the data was too large to fit in memory. Wondering if using memory-mapped data would
by nielsbot 6y ago
The author said he tried `String(file.availableData, encoding: .utf8)` but the data was too large to fit in memory.
Wondering if using memory-mapped data would have helped: `Data(contentsOf:..., options: .alwaysMapped)`?