Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re:Using Threading to speed up DNS Resolution

by BrowserUk (Pope)
on Oct 22, 2004 at 19:50 UTC ( #401658=note: print w/replies, xml ) Need Help??

in reply to Using Threading to speed up DNS Resolution

Not withstanding Elain's point, you might find Re: Parallel DNS queries (use threads; ) and the associated thread interesting.

I only did brief tests with the code back then, and they were not scientific, but on Win32, it appeared as if the DNS lookups where overlapped to me.

Doing 10 lookups in parrallel taking approximately a fifth of the time required to do them sequentially. I have no idea whether this would be true for other OS's

It might be possible to improve that by using NET::DNS objects rather than spawning an external process, but I haven't tried that.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re:Using Threading to speed up DNS Resolution

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-09-17 14:20 GMT
Find Nodes?
    Voting Booth?

    No recent polls found