Forums / Developer / 3.1-2 is VERY SLOW

3.1-2 is VERY SLOW

Author Message

Gabriel Ambuehl

Friday 13 June 2003 3:06:52 am

I've been playing around with 3.1-2 and while it works very well, it's f***** slow. On a P3800 machine not doing anything except serving as development box, it takes about 9seconds (as calculated by Debug) to load the login page and 98% of the time is spent in the template module. Now caching is active and so is template compiling and I'm using phpaccelerator already.

What can I do to get better performance?

And why don't I see any of my own siteaccess templates in var/cache/compiled?

Template compiling is a nice idea in theory but in practice, the benefits seem unnoticeable.

I think a 1Ghz machine should be able to deliver at least 5 pages/s not 1 page per 10 seconds. And I'm not doing much in the lines of template black magic, my pagelayout is 25k but there's only two dynamic parts, the menu is assembled of children of the root node and the content of the current node is fetched and links to its children are displayed, nothing more.

Visit http://triligon.org

Bård Farstad

Friday 13 June 2003 3:27:19 am

Check that you have correct permissions so that cache files are created. 3.1 is faster then 3.0 when you have enabled caching. It sounds like there is a charset conversion which takes alot of time. Do you see this on the debug output?

On my development PC ( 1GHz PIII IBM ) the login page takes about 0.29 seconds to load. The cached views takes about the same.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Friday 13 June 2003 4:13:39 am

Ok, I tried again on a 2Ghz Athlon XP box.

I think the real offender for the login page (which now takes approx 3.5 s to load) is this:

String conversion 1.8185 sec 46.2855% 186 0.0098 sec
String conversion w/ codepage reverse 1.8051 sec 45.9443% 1 1.8051 sec

During setup I've chosen German as language which might have been a mistake, I'll try what happens with en_UK, too.

Maybe
Warning: ezi18n Jun 13 2003 13:21:46 No translation for file(translation.ts) in context(design/standard/layout): '%1 front page' with comment()

is the problem?

Visit http://triligon.org

Gabriel Ambuehl

Friday 13 June 2003 4:31:34 am

Yes it's definitely the translation that's causing wreck havoc here.

When I set en-UK, I get to see the login page in 0.3Xs on the 2Ghz machine!

So translation is one area where some work needs to be done (maybe have the setup insert the translation into the files statically instead of translating stuff on the fly each time?)

Visit http://triligon.org

Jo Henrik Endrerud

Friday 13 June 2003 5:39:47 am

The problem can be related to the caching of the translation files. Do you have the PHP mbstring extension installed? This should take care of this problem for you

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Gabriel Ambuehl

Friday 13 June 2003 11:22:11 am

No but thanks for the pointer, I'll try installing mbstring then.

Visit http://triligon.org