Best Practice: many extensions, or one extension

Author Message

John Moritz

Tuesday 30 September 2008 4:22:20 am

Hello,

i just want to ask, if its better to make 5 extensions or better 1 extension which includes everything?
Is there a speed loss when i integrate to much extensions?

André R.

Tuesday 30 September 2008 6:00:18 am

To some degree there is a slight speed loss, but unless you use a slow filesystem (windows / mac / nfs) or a lot of extension(~20) you won't really notice it much. Some of the speed loss is fixed in 4.1 though, by introducing a setting to turn of modified time checking on ini files.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Friday 17 October 2008 7:53:51 am

Hi,

Basically, when we aim at generic solutions, we try to isolate tool functionalities and this leads to many extensions. Otherwise, when we implement a one-time client-dedicated solution, this usually grows bigger within one extension folder.

We have some implementations that have 20+ extensions. We haven't noticed any significant problems at this point, but that also much depends on site optimization and cache-layer. Also, the more dynamic content you have, the more important this issue I would expect to be.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

eZ debug

Timing: Jan 18 2025 19:19:50
Script start
Timing: Jan 18 2025 19:19:50
Module start 'layout'
Timing: Jan 18 2025 19:19:50
Module start 'content'
Timing: Jan 18 2025 19:19:51
Module end 'content'
Timing: Jan 18 2025 19:19:51
Script end

Main resources:

Total runtime1.0156 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.0469152.6406
Module start 'layout' 0.00800.0026 740.687539.4766
Module start 'content' 0.01071.0036 780.1641575.9766
Module end 'content' 1.01430.0013 1,356.140612.1250
Script end 1.0156  1,368.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3101160.0002
Check MTime0.00130.1301160.0001
Mysql Total
Database connection0.00170.163210.0017
Mysqli_queries0.960094.5217590.0163
Looping result0.00070.0738570.0000
Template Total0.977196.220.4886
Template load0.00190.190520.0010
Template processing0.975296.022620.4876
Template load and register function0.00020.014910.0002
states
state_id_array0.00090.085610.0009
state_identifier_array0.00150.146520.0007
Override
Cache load0.00160.1536140.0001
Sytem overhead
Fetch class attribute can translate value0.00150.144430.0005
Fetch class attribute name0.00110.104650.0002
XML
Image XML parsing0.00150.150130.0005
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00090.0875240.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs