mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-27 21:28:18 +00:00
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:
1 parent
20694bb628
commit
1619cd5afe
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user