Re: Dexterity performance issues.

Matt Hamilton <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
On 16 May 2014, at 17:20, David Glick (Plone) <david.glick-z4DKO/[email protected]> wrote:

> Hmm, the benchmarking I did early in Dexterity's life suggested that it 
> was roughly comparable in performance to Archetypes. It's possible that 
> a regression has happened since then, or it's possible that that 
> benchmark didn't adequately cover this use case.

Well perhaps the supposed smaller size of Dexterity objects in the ZODB (and I guess less effort to load them) may compensate for the slow attribute access? Also I guess it might be relative to what you are actually doing. Ie. if you are ding a lot of work anyway you might not have noticed the overhead. But then I really am quite surprised that bulk adding p.a.ct folders was so much slower than AT Folders. 

I was hoping at the start of our day-long debugging session to find that actually I was doing something stupid (still a chance I was) or that I was exercising some very abnormal pattern. But I think this could be quite a common pattern (iterating over a load of objects and accessing an attribute).

Come to think of it… I was comparing, in effect, the time to access a regular python instance attribute (that often does not exist and hence custom __getattr__ called). Maybe if I was comparing accessing an AT Schema attribute versus accessing a Dexterity schema attribute the difference might be less.

> Thanks for providing your benchmark code so others can investigate.

No problem. I’m really interested to hear of anyone else who has done any other (formal or informal) benchmarks.

-Matt

-- 
Matt Hamilton, Technical Director
Netsight Internet Solutions Limited
http://www.netsight.co.uk/matth
Tel: 0117 90 90 90 1 Ext. 13

Registered in England No. 3892180
Registered office: 40 Berkeley Square, Clifton, Bristol, BS8 1HU


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
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.