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

Re: network socket send loop is very cpu intensive

by Art_XIV (Hermit)
on Nov 18, 2003 at 13:54 UTC ( [id://307968]=note: print w/replies, xml ) Need Help??


in reply to network socket send loop is very cpu intensive

I wonder what's going on in the sendtolive sub. Are you sure that it's being all that it can be? Is this from a CPAN module or was it written by yourself? Are you creating a new socket/object/whatever each time the sendtolive sub is called? (Avoid that, if you are.)

Aside from the directory handle issues, that sub call looks like the biggest suspect. I can't really tell though, w/o code.

Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"
  • Comment on Re: network socket send loop is very cpu intensive

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found