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

On Apr 7, 2008, at 07:32 , Dominique Hazael-Massieux wrote:
>> The way the API works is to define a handler module with a subroutine
>> for each sort of event, and short of making several handler modules,
>> one with data subroutine and one without (and we can imagine other
>> branching situations) I don't think it's possible to just say "don't
>> use your data routine for data events".
>
> 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?

yes, indeed. Any better/simpler solution from others on the list?

-- 
olivier

Received on Monday, 7 April 2008 12:27:33 UTC