talking to someone, their rust was twice as slow as their C++. turns out they fell afoul of locking stdout for each write, and weren't using a buffer. fixing both of those, their rust is now 25% faster those things are such performance footguns
-
Show this thread
-
Replying to @steveklabnik
CLI book update with section on println performance landed, by the way: https://rust-lang-nursery.github.io/cli-wg/tutorial/output.html#a-note-on-printing-performance … …also featuring a nice additional tip using bufwriter by
@burntsushi5!1 reply 1 retweet 9 likes
Replying to @killercup
This is really good! Hadn't looked at the CLI book in a while. Awesome work!
6:22 AM - 22 Sep 2018
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.