Re: Diazo overhead?

Johannes Raggam <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
I've seen a theme completely built with large sets of XSLT rules in
Diazo and no modifications in templates. Besides being unmaintainable
(rules are bound to both the Diazo template markup and the content
markup), was also was very slow. Probably there were a lot of "search
anywhere in the document" xpath queries.

I love Diazo, but you have to make find the threshold where to do
modifications in page templates rather than in Diazo. My rule of thumb
is to use page template modifications (custom views bound to a browser
layer or overrides via jbot) for most of the templates/views which are
rendered in one of the columns of Plone (main content column, portlet
columns, footer). This way, my ruleset is always quite simple but
designers are still able to play around.

johannes

On Thu, 2014-11-06 at 13:25 +0000, Martin Aspeli wrote:
> 
> 
> On 6 November 2014 11:36, Daniel Jowett <[email protected]>
> wrote:
>         I think there was some mention at the conference of an
>         overhead
>         from using "*" in some Diazo rules.  Would anyone care to
>         expand on that
>         
> 
> 
> Using * or Xpath expressions beginning with // (sometimes/usually)
> means "search anywhere in the document". So that can be slow because
> it has to look everywhere. More precise expressions are faster because
> you're giving the parser more information about where to look.
> 
> 
> Martin
> ------------------------------------------------------------------------------
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users

-- 
programmatic  web development
di(fh) johannes raggam / thet
python plone zope development
plone framework  team  member
mail: office-//[email protected]
web:  http://programmatic.pro
      http://bluedynamics.com

------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEABECAAYFAlRbfIcACgkQW4mNMQxDgAexvQCfYeedOGieNI17FZa3K2In1z+b
F4QAnjhMRI7plJezRZvfEqgSaehEF14h
=csNb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.