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.