Re: [SMARTY] smarty performence

From: Date: Wed, 28 Jul 2004 08:26:25 +0000
Subject: Re: [SMARTY] smarty performence
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11634@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#11634) next »