Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 contemplating the Monastery: (8)
As of 2014-10-01 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls