Wojciech Kocjan wrote:
>
> vars get -default "novalue" xyz
Good.
>
> $VARS should be used where you access many variables - hashing should be
> faster than browsing apreq... While if you only access 5 out of 20
> variables (and access the rest only in 1/50 cases :-), vars should be
> faster...
mod_dtcl must parse QUERY_STRING to find the right variable;
every time you call [vars get xxx], the module (in the worst case)
must parse every variable in the string - which is exactly what
you wanted to avoid.
I think this approach is effective only if you access
'very few' out of 'a lot of' variables. We should consider the case, anyway.
>
> I also came up with another solution - if QUERY_STRING is 'x=a&x=b&x=c'
> then $VARS(x) would be either one of them, but ONLY when >1 value exists,
> then VARSL (or LVARS - sounds better :-) is set. This way you avoid
> duplicate values.
>
> But I'm not sure if it's so easy to check if an entry in apreq is the only
> entry with such name...
Too complex, I think. The result could be even slower than duplicating values
(a lot of tests involved, both in mod_dtcl and in the scripts).
--
Valerio Gionco [[EMAIL PROTECTED]]
MOST s.r.l. Via Bezzecca, 9 - 10131 Torino
************************************************************************
"Life's not fair, but the root password helps."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]