DEV Community

Discussion on: Adventures in Rust

Collapse
 
upsuper profile image
Xidorn Quan

Looking at the code, I believe there are several things can be optimized further in uq, e.g. holding a StdinLock rather than using stdin() for each line, having a persisted String as buffer to avoid allocating for getting string every time.

Collapse
 
tmr232 profile image
Tamir Bahar

Thanks! Feel free to submit a PR :)