Re: Some more plane hacking...
| From: | (Stig Sæther Bakken) | Date: | Thu, 16 Aug 2001 07:11:15 +0000 |
| Subject: | Re: Some more plane hacking... | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1529@lists.php.net to get a copy of this message | ||
[Rasmus Lerdorf <rasmus@php.net>]
> I did a bit of playing around with Smarty on the plane today.
> Basically I wrote a small C extension that creates the base Smarty
> class and initializes many of the variables. Then I extended that
> base Smarty class from user space with the existing user-space
> Smarty class stuff. The result was a 25% speedup in my limited ab
> tests. There is still a bunch of stuff in userspace that could
> easily be moved into the extension and thus provide more of a
> speedup.
>
> I also had a look at the pear DB class, although I didn't start
> writing any code for that one. I think Stig mentioned he was
> planning on pulling some of that into a PHP extension. But looking
> around in Pear there are a number of classes that could benefit
> greatly from a bit of help from a C extension.
>
> What is the overall feeling here about converting some of this stuff
> to C?
I think it's a good idea to convert a selected few classes to C.
PEAR, PEAR_Error (these two have already been done, but the C version
has not been updated) and DB_common are my first candidates.
- Stig
--
Stig Sæther Bakken <ssb@alltheweb.com>
Fast Search & Transfer ASA, Trondheim, Norway