-----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>
<metal:block tal:define="my_value
python:my_object.getValue()">...</metal:block>
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.
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEqRmaRAx5nvEhZLIRAhsIAJsHRlq94iq7c0wbeGN92JhlikUFwgCfaClc
b16sWokKTRVrWo4BtvRGVhg=
=tt4I
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )