pushyrpc / pushy

Easy-as RPC. Zero-server RPC for Python and Java.
http://github.com/pushyrpc/pushy
45 stars 18 forks source link

Daemon/socket transport is slow #32

Closed axw closed 12 years ago

axw commented 12 years ago

Even on localhost, where sockets should short circuit, the daemon transport is extremely slow. A program I wrote using the local transport takes ~0.3s, whereas the daemon transport takes ~4.0s.


Imported from Launchpad using lp2gh.

axw commented 12 years ago

(by axwalk) Pushy can be quite chatty, with many small packets sent. Disabling Nagle speeds up Pushy dramatically, by eliminating delays in sending these small packets. After setting TCP_NODELAY, the daemon transport operates at a similar speed to the local transport (at least on the localhost).

axw commented 12 years ago

(by axwalk) Fixed in revision 102.