Re: [SMARTY] IonCube PHP Accelerator
| From: | Robert Cummings | Date: | Thu, 01 Apr 2004 19:05:43 +0000 |
| Subject: | Re: [SMARTY] IonCube PHP Accelerator | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11204@lists.php.net to get a copy of this message | ||
On Thu, 2004-04-01 at 13:55, Kelly Hallman wrote:
> Hey Smarty fans,
>
> I don't know if this was mentioned here before, and I have absolutely no
> connection with this company or product. Check it out:
>
> http://php-accelerator.co.uk/
>
> They claim "Benchmarks of the Smarty templates system with and without
> acceleration using PHPA show that nearly 10 times acceleration from PHPA
> is possible on Smarty based applications."
>
> If that's not enough, the install is super simple
> (provided you've got access to modify php.ini, etc).
>
> So far, it's very impressive, though I haven't done any benchmarking and I
> don't run anything excessively slow to the point that I'd be able to
> perceive the difference, but the person who recommended it to me said it
> greatly improved one monster PHP app that he was running, cutting page
> time from 4 seconds to 'almost instantaneous'. I believe it, since a lot
> of PHP apps tend to include almost the entire codebase on each hit, and
> most of the overhead is parsing/interpreting that code.
>
> Interested to hear anyone's feedback or experiences.
I don't really use Smarty except when clients want me to, but I do use
Ioncube accelerator. With the InterJinn framework it provides about a
50% speed improvement. It would probably provide more if the whole
framework was loaded on every page hit, but InterJinn uses a lazy
loading philosophy and so this isn't the case. With specific
applicability to Smarty, I would say that you would gain a very good
improvement since for every page that includes the Smarty lib, you are
including approx 4000+ lines of code. The Ioncube accelerator prevents
these from needing to be parsed on every page hit, and instead provides
a pre-parsed bytecode version after the initial load to the PHP engine.
I've been using PHPA for about 4 years now. This effect is compounded by
for lib you include that contains a large amount of source code.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'