[rust-dev] net::tcp::TcpSocket slow?

Michael Neumann mneumann at ntecs.de
Thu Dec 20 17:58:03 PST 2012


I am writing a redis client [1] 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.
Is there anything I can do about it, or is this a known issue?

I use methods TcpSocket.{write,read}.



[1]: https://github.com/mneumann/rust-redis

More information about the Rust-dev mailing list