Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Socket slowdown when using two separate print statements

by Fletch (Bishop)
on May 06, 2011 at 17:04 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://903412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-29 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found