[Zope] page templates and "python:"
chrism at plope.com
Mon Jul 3 10:44:20 EDT 2006
Actually, I think python: expressions perform slightly better than
their path: counterparts because their evaluation step needs to do
less work (no guessing about getitem vs. getattr). Geoff Davis
taught me that. But in the end it's all dwarfed by the penalty
imposed by security, so it really doesn't much matter.
On Jul 3, 2006, at 9:20 AM, Jens Vagelpohl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 3 Jul 2006, at 15:09, Andreas Jung wrote:
>>> <metal:block tal:define="my_value my_object/getValue">...</
>>> <metal:block tal:define="my_value
>> The main difference between both variants is that in path
>> expressions getValue can be either an attribute or a method...so
>> at least path expressions may have some overhead...you have to
>> measure it.
> As far as I know path expressions have better performance. I don't
> have the in-depth expression engine knowledge to explain why, but
> that's been what everyone has said to me before.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
> -----END PGP SIGNATURE-----
> Zope maillist - Zope at zope.org
> ** No cross posts or HTML encoding! **
> (Related lists -http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope