Hi,

Am Freitag, den 18.04.2008, 15:54 +0200 schrieb Bertrand Delacretaz:
> On Fri, Apr 18, 2008 at 3:45 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> 
> > ...Consider two scripts
> >
> >     /apps/sling/sample/sample.esp
> >     /libs/sling/sample/sample.print.a4.esp
> >
> >  Now, we probably want to use the latter script and not the first one
> >  because the latter is more specific to the request....
> 
> Agree with you, unless we want to give priority to /libs over /apps,
> which is how search paths work in unixish file systems.

The search path from ResourceResolver.getSearchPath defines the order.
And this is currently configured to be [ "/apps", "/libs" ], thus giving
precendence to /apps over /libs. This is correct as we assume provided
scripts in /libs and application "overwrites" in /apps.

Regards
Felix

> 
> >  ...I think, this is probably bearable ... But request logger might show
> >  more or even some performance analysis....
> 
> We can profile that code once we have it if needed, but I doubt this
> will be very relevant to the overall performance of processing a
> request. And if it is, as we said before, those decisions are easy to
> cache.
> 
> -Bertrand

Reply via email to