norton/ubf — pull request #3 by tatsuya6502 (2011-10-27 05:05:55+00:00)
Title: Turn on TCP_NODELAY in Python EBF client to address a performance issue

It seems the combination of Negel algorithm at client side and delayed ack
at server side causes large latencies for sending small packets.

Here is a performance measure:
A single-threaded client calling Hibari's UBF server:

Python EBF (Before)
40.0063650608 time elapsed for 1000 set operations
24.9960224699 op/sec

Python EBF (After)
0.490041017532 time elapsed for 1000 set operations
2040.64550563 op/sec

References:
http://stackoverflow.com/questions/647813/socket-trouble-in-python/647835#647835
http://bytes.com/topic/python/answers/159515-network-performance#post612983