How good are PHP accelerators?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

How good are PHP accelerators?

Postby Xerpher » Sun Oct 06, 2002 11:11 am

And are they worth it?

Jay

Postby Jay » Sun Oct 06, 2002 2:00 pm

php-accelerator.co.uk has an accelerator which almost matches Zend's own one, and it's free! So yes, it's worth it (and they are good).

In case you want to know how it works, this is how. When a file is called (index.php) the server reads that file, parses it, fills in all the gaps, loads all the other files, gets all the variables sorted, etc etc etc, and then runs the PHP executable to execute the page and produce the output. The problem is that this cycle is repeated every time the page is called.

What the accelerator does is presume that the page hasn't changed it's coding in between requests, therefore doesn't need reloading and recompiling. It stores the (almost) last product, and executes that! Simple!

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Postby Xerpher » Sun Oct 06, 2002 2:04 pm

And does it check to see if the code is newer than the compiled version?
(More than likely yes, but I just want to be sure)

Jay

Postby Jay » Sun Oct 06, 2002 10:58 pm

Yes, not exactly sure of the mechanism but I think it checks the last changed date or something. It's got everything written up on the site, have a read!


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron