Re: Re: [PHP] Re: PHP, OOP and AJAX

From: Date: Thu, 28 May 2009 20:50:15 +0000
Subject: Re: Re: [PHP] Re: PHP, OOP and AJAX
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-293327@lists.php.net to get a copy of this message
On Thu, May 28, 2009 at 2:42 PM, Eddie Drapkin <oorza2k5@gmail.com> 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

« previous php.general (#293327) next »