3 ms·
Why copy the string at all? You have string in file. Mmap file and just store string view of it.
by sesuximo 6y ago
Why copy the string at all? You have string in file. Mmap file and just store string view of it.
- gpderetta 6y agoyou can't mmap a pipe unfortunately and that's a very valid use case. At the very least you would need two distinct code paths.