Closed Blei closed 9 years ago
Also: you don't have to flush as TcpStream is not buffered. IMO this method should be inlined and so would be optimized to a noop, but currently doesn't seem to be (https://github.com/rust-lang/rust/blob/cf0edd0ad941a4a569e8afb17494cb1eb53373e9/src/libstd/net/tcp.rs#L196)
Removing -g and adding "-C opt-level=3" (or 2, 3 is sometimes worse than 2) might speed things up a bit.