Turns out the main reason it was so slow was because stdout isn't buffered in Rust by default. That actually makes a lot of sense, but I'd forgotten. Wrapping it in a BufWriter solves the performance issues much more gracefully. |
||
---|---|---|
.. | ||
buffer | ||
editor | ||
term_ui | ||
formatter.rs | ||
main.rs | ||
string_utils.rs | ||
utils.rs |