For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > July 2004 > Re: [SMARTY] smarty performence









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] smarty performence
Andreas Ahlenstorf

2004-07-28, 4:02 pm

Hello,

Anders Gjermshus schrieb am Dienstag, 27. Juli 2004 um 23:52:

> We have a portal with 50 000 users and about 500 to 1000 people online at
> the same time. We want to use Smarty in our new version of the portal. But
> how would it perform under this situation. Would use of smarty make the page
> slower? Or any change in speed all? And how would the load on the server be?


If you use Smarty, you extend the amount of code which has to be
executed. So generating a page using Smarty will cost some more
CPU cycles than without [1]. That's a fact. So you have to decide
if you like to have more comfort or more speed.

Personally, I like to have more comfort and so I try to catch up
the performance loss somewhere else.

Things you can generally do to improve the speed of your
application (not sorted):

- Use lighttpd instead of Apache
- Use PHP over FastCGI and not the apache module
- Use a bytecode cache like TurckMMCache
- Use caching (Smarty has good caching functions)
- Tune your database
- Tune/improve your code
- Buy more RAM
- Buy one or more big CPUs (Opteron is a good choice, especially
with MySQL)
- Use SCSI harddrives
- Cluster some servers for your database
- Execute PHP on one or more PHP application servers (over
FastCGI)
- Use a reverse proxy (e.g. Squid)
- ...

Regards,
Andreas

[1] If you don't use a caching system
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com