Performance boost for RDF::RDFa::Parser with xml catalog file

Robin Berjon robin at berjon.com
Wed Dec 9 09:32:32 CET 2009


On Dec 9, 2009, at 00:26 , Toby Inkster wrote:
> On Tue, 2009-12-08 at 23:20 +0100, Neubert Joachim wrote:
>> Using locally stored copies of the 28 (!) XHTML+RDFa DTD files and a
>> XML catalog file boosts RDF::RDFa::Parser performance for parsing a
>> tiny XHTML file from ~ 13 sec to less than 1 sec.
> 
> Hmmm... well done. I thought switching off validation [->validation(0)]
> would be enough to stop it trying to load the DTD, but it seems not. I
> wonder if I can find a good way to build this technique into the next
> release?

You don't have to load the catalog in /etc, you can load your own. This would indeed be a big plus, and the W3C will be very thankful if people stop downloading the DTDs with every parse :)

-- 
Robin Berjon - http://berjon.com/





More information about the Dev mailing list