cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject simple matchers to reduce overhead
Date Wed, 09 Oct 2002 09:31:25 GMT
> > btw: do we already have an "always" matcher?
> > due to the lastest performance analysis we should better
> > substitute
> >
> > <map:match pattern="*"> or <map:match pattern="**">
> >
> > with
> >
> > <map:match type="always">
>
> Well, you might end up with Matchers like
>
>     <map:match type="startsWith" pattern="foo">
>
> or
>
>     <map:match type="endsWith" pattern="bar">
>
> for performance reasons and the numbers of Matchers will exponantially
> grow.

...well, could you really think of more? If I look into our sitemaps those are 
the most widely used ones. All other would be regexpr / wildcard.

I don't think it's that bad... If I can really save that amount of per-request
processing time - I would go for it!

We could also modify the WildcardMatcher and hardcode some patterns instead...

pattern="**"
pattern="**something"
pattern="something**"

would be interesting to see the impact on performance...
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message