include() performance

From: Date: Thu, 24 Oct 2002 16:10:35 +0000
Subject: include() performance
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6229@lists.php.net to get a copy of this message
Hi, while I was looking at my application to find out why it's so "slow" I noticed that smarty caused quite some delays. I figured out that that my massive use of smarty's include function caused the delays. Due to a loop I was using upto ~200 includes per page. However, replacing the include function with the content of the included file was really a good idea:
               time per loop
include:           0.3630 s        without:          0.0133 s      => ~ 27 x faster
                                                       (the figure shows typical times for the first of up to 19 loops per page)
How about adding a note to the docs? Ulf -- WWE e-commerce IT GmbH, http://wwe.biz Eiffestrasse 462, D-20537 Hamburg Tel: 040 / 25 30 65 9-0, Fax: 040 / 25 30 65 950

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