* Michael Neumann:

> 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.

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.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to