Skip to content

Instantly share code, notes, and snippets.

@mbrubeck
Created March 7, 2017 22:06
Show Gist options
  • Save mbrubeck/a732a6e72cd2158ae1b92dbe8473636e to your computer and use it in GitHub Desktop.
Save mbrubeck/a732a6e72cd2158ae1b92dbe8473636e to your computer and use it in GitHub Desktop.
Rust C C++
Initial buffer file size or 1 MB 16 KB file size*
Buffer growth 8 KB doubling n/a
Max read() buffer size 16 KB 128 B
Work unit 2 KB entire sequence 64 KB

* the C++ code crashes if the input is not a file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment