W3C home > Mailing lists > Public > public-qa-dev@w3.org > April 2008

Re: profiling the Markup Validator with Devel::NYTProf

From: olivier Thereaux <ot@w3.org>
Date: Tue, 8 Apr 2008 14:21:06 -0400
Message-Id: <2ED354DC-0593-4D0E-A047-360643293025@w3.org>
To: public-qa-dev hacking list <public-qa-dev@w3.org>


On Apr 7, 2008, at 18:33 , Ville Skyttä wrote:
> I may not be aware of all the quirks that need to be taken into  
> account and
> patches below can thus introduce some bugs, but here are some  
> numbers taken
> on my box, running encoding_from_meta_element on the HTML 5 spec:
>
> Vanilla 0.56: about 20 seconds.
>
> 0.56 patched to decode only the last retrieved 8kB chunk, and not  
> maintaining
> the big buffer at all: about 0.4 seconds.  See attached
> decode-last-chunk-only.patch.
>
> 0.56 patched to use HTML::HeadParser: about 0.13 seconds.  See  
> attached
> use-headparser.patch.
>
> 0.56 patched with both decode-last-chunk-only.patch and use- 
> headparser.patch:
> no measurable difference to the use-headparser.patch only case.
> <decode-last-chunk-only.patch><use-headparser.patch>


Wow, nice find Ville.
I pinged Björn, who maintains HTML::Encoding, about it.

-- 
olivier
Received on Tuesday, 8 April 2008 18:22:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 August 2010 18:12:49 GMT