Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: XML::LibXML, svg, default namespace: Why so slow?

by choroba (Cardinal)
on Jan 03, 2015 at 22:10 UTC ( [id://1112077]=note: print w/replies, xml ) Need Help??


in reply to XML::LibXML, svg, default namespace: Why so slow?

When I ran your script, it seemed tolerably fast (0.056s).

But, when I removed the DOCTYPE declaration, it got even faster: 0.043s.

When I put it back but changed the URL to a non-existent one, the script started to crawl at 0.447s.

So, maybe, check your connection speed?

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: XML::LibXML, svg, default namespace: Why so slow?

Replies are listed 'Best First'.
Re: XML::LibXML, svg, default namespace: Why so slow?
by 7stud (Deacon) on Jan 04, 2015 at 00:00 UTC
    Thanks. I wasn't timing my program because it took approximately 5 seconds to run. I thought I tried removing the DOCTYPE to see if that was the problem, but now when I remove it, the results appear instantaneously, so you were right: the problem was my connection.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found