Smaller read buffer

This should help reduce buffer pressure
This commit is contained in:
John Goerzen 2019-11-03 18:05:58 -06:00
parent 6c1f6576bb
commit b65219dff5

View File

@ -25,7 +25,7 @@ pub fn stdintolora(ls: &mut LoraStik, maxframesize: usize) -> io::Result<()> {
let stdin = io::stdin(); let stdin = io::stdin();
let mut br = io::BufReader::new(stdin); let mut br = io::BufReader::new(stdin);
let mut buf = vec![0u8; 4096]; let mut buf = vec![0u8; 1024];
loop { loop {
let res = br.read(&mut buf)?; let res = br.read(&mut buf)?;