- From: olivier Thereaux <ot@w3.org>
- Date: Tue, 8 Apr 2008 14:21:06 -0400
- 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 UTC