New LinguaPlone releases with large performance improvements

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
Hi.

I spent some time in the last days to speedup LinguaPlone again.
Testing this both locally and over the weekend on a large production
site looks promising. I have seen rendering times to be cut in half.
Locally they went down from 370ms to 190ms. On the production site on
average the rendering times went down from ~2 seconds to ~1 second.
This only affects view performance and has no impact on editing
performance.

The changes are released in LinguaPlone 3.2a1 for Plone 3.3 and
LinguaPlone 4.0a3 for Plone 4.

If you have a large LinguaPlone based site, you might want to test
this out. Note that this is very new code and marked as alpha, so be
careful. The test site in question had 6 languages and ~190.000
content objects in it. The changes I made should be more noticeable
the higher each of those numbers are.

I'd appreciate feedback from anyone who tests this out. I would expect
improvements in the 30-50% range.

Note: If you are still using a LanguageIndex and don't need it's
functionality (fallback from content in sublanguage codes like "de-de"
to main language codes like "de"), you should replace it with a normal
FieldIndex. This is the default for new sites created with LinguaPlone
3.1+ and will give you very noticeable improvements on its own.

Cheers,
Hanno

P.S. If you are interested in the actual technical changes, you can
have a look at http://dev.plone.org/plone/changeset/40202/Products.LinguaPlone/trunk
and http://dev.plone.org/plone/changeset/40208/Products.LinguaPlone/trunk.
Basically I side-step the reference catalog search API and operate on
the actual internal index data structures instead. This lets me
replace the silly index restriction on the "relationship" index and
replace it with a more efficient check.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
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.