Re: [SMARTY] PHP Extension
| From: | Rasmus Lerdorf | Date: | Tue, 10 Jun 2003 15:31:57 +0000 |
| Subject: | Re: [SMARTY] PHP Extension | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9693@lists.php.net to get a copy of this message | ||
On Tue, 10 Jun 2003, Alex wrote:
> I friend of mine, a real speed-geek does not use smarty just because "it
> is 85 Kb of code that eats up 100 milliseconds per call", - but he
> proposed an interesting solution to code smarty anew as a native PHP
> extension in C. Are there maybe plans to do so in the near (far) future?
I had a long flight last year and rewrote the base Smarty class in C just
to see how much it would help. The speedup was rather dramatic.
Instantiating a class with a lot of properties in user space is rather
slow. You don't need to write all of Smarty in C, just do the base class
and some of the commonly used functions and leave the rest in user space.
-Rasmus