Bump the buffer size to 256 bytes

On my machine this produces an 11% speedup (benchmarked reading a 1.3MB
file from disk). Higher buffer sizes don't seem to make a difference.
This commit is contained in:
Lily Ballard authored and David Peter committed 2019-01-13 17:35:51 +01:00
1 parent 20694bb628
commit 1619cd5afe
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ use clap::{App, AppSettings, Arg};
use ansi_term::Colour;
use ansi_term::Colour::Fixed;
const BUFFER_SIZE: usize = 64;
const BUFFER_SIZE: usize = 256;
const COLOR_NULL: Colour = Fixed(242); // grey
const COLOR_OFFSET: Colour = Fixed(242); // grey