Modular (and slow?) design, or non modular (and fast?)?

Author Message

Tore Skobba

Thursday 18 December 2003 10:39:56 am

Hi All

I Have a question which people with experince using and running EZ might help with. Currently I am making an design where I have lots of different templates (around 10 template are invoked for an page, add eventual X children node display templates for some pages). This in order to have modular design and code, in addition I am doing some controll statments in order to further have an modular design and templates. I belive that I could perhapes cut away half the templates and several controll statments if I wanted to have a less modular design, due to eventual lower page generation times (faster site).

So I am just wondring if people try to opt for fast solutions, or modular and maybee slower ones. My experince tells me that more templates tend to give longer page generation times, even when the templates are cached. However, I am not sure if the eventuel lower page generation time from an less modular design would be worth it. So I thought maybee someone with some experince could give some tips.

So what do you do? Optimize for speed or modular design?

I just wants some general personal comments as I have very little experince with different solutions.

Cheers
Tore

Mark Marsiglio

Sunday 21 December 2003 5:30:39 pm

I chose a modular design for my site, and as a performance test, I took one of my page layout templates and combined all of the includes into one template.

The result was that the non-modular template was approximately .1 seconds faster in processing times.

This was before I had enabled cache blocks, and it rendered in 3 seconds with modular template (about 12 different templates called) and 2.9 seconds when I combined everything into one template.

After enabling cache blocks, load times are down to .8 seconds on average.

I left it modular, as the slight performance improvement was not worth the development headache of having everything combined.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.