in reply to I know two prints are slower than one, but 200x slower?!?!?
Adding setsockopt($sock, IPPROTO_TCP, TCP_NODELAY, 1); just after your accept seems to clear the delay in the two print case, confirming the guess.
Of course, this now raises two other questions:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I know two prints are slower than one, but 200x slower?!?!?
by cdarke (Prior) on Aug 16, 2007 at 11:03 UTC | |
by halley (Prior) on Aug 16, 2007 at 13:55 UTC |