[phpa] Re: Accelerator or Caching?

Oh, hmm. That makes sense :) Right now, I'm trying out the FreeBSD version
on MyCool.com (co-branded board) with Zend Optimizer disabled since Apache
was spitting out conflicts with it.

Keep up the great work! I can't wait to get back home to read over the lists
and see what comments other people have made.

-----Original Message-----
From: Lindridge, Nick (Exchange) [mailto:nlindridge@xxxxxxxx]
Sent: Thursday, December 20, 2001 3:55 PM
To: 'Jonathan Chum'
Cc: Home (E-mail)
Subject: RE: [phpa] Accelerator or Caching?


Hi Jonathan,

Thanks for the interest in PHPA. I may post this response from home to the
list, but will send a quick reply while I have a moment now.

Firstly, APC actually doesn't cache the output of your scripts. It caches
the compiled PHP code and loads this if it can. This speeds your scripts
because the parsing and compiling can be quite time consuming. Dynamic
scripts therefore work just as well as static scripts - providing that it's
just the output content that is changing and not the script source code
itself.

PHPA does the same, just more efficiently, and hence is faster, but also
includes its own code optimiser.

PHPA is faster than APC because it caches code in shared memory and allows
code to be executed directly from the shared memory cache. Zend do the same,
and is why PHPA offers essentially the same performance as the Zend cache.
APC caches code in SHM too, but they don't execute code directly from the
cache and are slower as a result.

Typically you'll get a 2 to 3 times performance improvement, but this
clearly depends on what your scripts are doing. The code optimiser in PHPA
will help execution, but in the current versions the effect is not that
noticable.

Hope this helps!

Please let me know if you require more information.

Nick


-----Original Message-----
From: Jonathan Chum [mailto:jchum@xxxxxxxxxxxx]
Sent: Thursday, December 20, 2001 10:51 AM
To: phpa@xxxxxxxxxxxxx
Subject: [phpa] Accelerator or Caching?



I'm wondering how this application works, does it cache file or accelerates
the script. I had used APC in the past and it cache resulting outputs of my
scripts. Since my scripts are dynamic (bulletin board application), it
relies heavily on optimization rather than caching output. So is phpA an
application that optimizes the script or does it cache the output? Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A I S   M e d i a ,  I n c .
"We Build eBusinesses"
3541 Habersham at Northlake, Building E
Tucker, GA 30084
Tel: 800.784.0919, Ext 111 / Fax: 678.382.2471
http://www.aismedia.com / jchum@xxxxxxxxxxxx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe



****************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************


------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: