|
|
|
|
|
by _3u10
252 days ago
|
|
It’s just two pointers the current place to write and the current place to read, escapes are always more characters than they represent so there’s no danger of overwriting the read pointer. If you support compression this can become somewhat of and issue but you simply support a max block size which is usually defined by the compression algorithm anyway. |
|
And usually if you want maximum performance, buffered read is the way to go, which means you need a write slab allocation.