[rust-dev] net::tcp::TcpSocket slow?
fw at deneb.enyo.de
Sun Dec 23 13:03:09 PST 2012
* Michael Neumann:
> I am writing a redis client  for rust but somehow TCP performance
> seems to be veery slow. I basically just sent a string
> to redis and read the response (I commented out parsing). Doing this
> 10_000 times takes about 4.5 seconds, while doing the same in Ruby
> takes just 0.7 seconds.
Perhaps you just need to disable the Nagle algorithm (that is, enable
the TCP_NODELAY socket option). I'm not sure if Rust uses the code
for that in libuv.
More information about the Rust-dev