Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Socket slowdown when using two separate print statements

by Fletch (Chancellor)
on May 06, 2011 at 17:04 UTC ( #903412=note: print w/ replies, xml ) Need Help??


in reply to Socket slowdown when using two separate print statements

Presuming the OS in question supports it it might be elucidating to use strace or its equivalent (dtruss, what not) to watch the underlying system calls being made with relative timings enabled. I don't know for sure but it sounds like it might be some weird Nagle's algorithm interaction going on.

The cake is a lie.
The cake is a lie.
The cake is a lie.


Comment on Re: Socket slowdown when using two separate print statements
Re^2: Socket slowdown when using two separate print statements
by suaveant (Parson) on May 06, 2011 at 18:51 UTC
    Yeah, sorry, Red Hat Enterprise Linux AS release 4, tried Perl 5.10 and 5.8.5

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://903412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-11-27 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (187 votes), past polls