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

Re: Outline feature in validator (was: profiling the Markup Validator with Devel::NYTProf)

From: Olivier Thereaux <ot@w3.org>
Date: Wed, 23 Apr 2008 00:29:35 -0400
To: Dominique Hazael-Massieux <dom@w3.org>
Cc: public-qa-dev hacking list <public-qa-dev@w3.org>
Message-ID: <20080423042935.GA12254@w3.mag.keio.ac.jp>

On Mon, Apr 07, 2008, Dominique Hazael-Massieux wrote:
> Well, if the cost of using a single handler is so high, I would
> definitely recommend defining several handler modules; I expect one can
> inherit from another, and thus, there wouldn't be any code duplication,
> right?

I followed this path and came up with a patch for check today. Took the
opportunity to clean up the pseudo-modular structure of that script a
bit, renamed the ill-named "SAXHandler" and subclassed it for the (rare)
cases where the outline is needed.


I tested and it seems to work, I ran the profiling and saw the obvious
jump in performance I was expecting. My perl-fu feels a tad rusty these
days however, so a review of the patch would be more than welcome.

Received on Wednesday, 23 April 2008 04:30:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:54:53 UTC