Re: Re: Re: PHP, OOP and AJAX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 28, 2009 at 2:42 PM, Eddie Drapkin <oorza2k5@xxxxxxxxx> wrote:

> autoloading doesn't do anything but follow a set of logic rules to decide
> what file to require, so it doesn't mess with opcode caches at all.


umm.., right, but what do you think happens at the center of that logic ?

require / include calls.

which obviously hits the opcode cache, if one is running.

i did however draw an inaccurate equivalence between dynamic loading and
autoloading, which is a misnomer, since dynamic loading such as
$this->load() in ci must be done explicitly, whereas the autoloader will do
those lookups on your behalf when needed.  its a step beyond $this->load()
really.

essentially all ci is doing for a performance boost is something like this

case 1
<?php
require..
require..

class A {}
?>

case 2 (ci style)
<?php
class A {
  function blah() {
    require <-- note: code only required when needed
  }
}

crude, but effective.
-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux