On Tue, 25 Sep 2001, Stas Bekman wrote:
 
> There is another performance issue with setvars I'm thinking about. 
> Currently when you perform $r->dir_config I have to merge the directory 
> and server configs and give you the new table. This may be very 
> expensive. Now we could avoid this by doing a deeper merge at the 
> configuration stage, but since we allow $s->dir_config->set|add the $s'
> vars can change and our merged version be wrong. So it sucks, 
> performance wise of course, since we cannot pre-merge. I guess we should 
> put a fat warning -- DO NOT Call $s->dir_config without arguments, 
> unless you don't mind performance implications.

dir_config values are merged even if you don't call dir_config().  apache
calls modperl's per-directory and per-server mergers, which is where the
merging happens.  calling ${r,s}->dir_config does not trigger merging of
any kind.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to