Skip to content
Commit b959b86b authored by Behdad Esfahbod's avatar Behdad Esfahbod
Browse files

[stream] Add a stdio-based buffered implementation

Should be fairly solid, though more testing will help.
The buffering in stdio makes most of the syscalls go away.
Most remaining are the lseek() syscalls caused by fseek()
calls for when moving backward in the buffer.  I think
it's a bug in stdio to make those syscalls when the result
is cached anyway.  Anyway, this is a huge improvement
already, specially when reading the buffer forward.
parent f690a497
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment