[wp-hackers] Re: Streamlining Includes
Joost de Valk
joost at joostdevalk.nl
Mon Mar 3 07:43:57 GMT 2008
Sounds great to me... Anyone up for writing that?
Sent from my iPod
On Mar 3, 2008, at 8:39, "Jacob Santos" <wordpress at santosj.name> wrote:
> Ha ha, I just thought of something which is funny. You could basically
> create a PHP extension, which takes all of the files in wp-includes
> "autoloads" them. You wouldn't even need that much C to do so. The
> thing, is that it would be easy to keep the extension updated to the
> latest of WordPress.
> Here is the funny part: Basically, during the PHP Init stage, it
> will take
> all of the PHP files and compile them. Okay, this is painful for CGI
> However, for mod_php and FastCGI, the files would always exist
> within PHP,
> unless the process/PHP thread is closed. The files would only be
> once and the compiled version will exist for each PHP process.
>> On Sun, Mar 2, 2008 at 10:10 PM, Jacob Santos
>> <wordpress at santosj.name>
>>> This system also totally circumvents opcode caches like APC.
>> Not totally, but some parts are circumvented. Top loading is
>> definitely faster than conditional loading with APC. Most people
>> don't have any sort of opcode cache, however. Not loading and
>> interpreting a bunch of stuff will be faster for them, even given the
>> overhead of conditional loading. At least my half-assed profiling
>> awhile back suggested it is faster. Better profiling is needed for
>> anything we decide to do, and we need to take into account operating
>> both with and without an opcode cache.
>> Some interesting links discussing conditional loading and caching:
> The pooteeweet.org blog post is basically saying the same thing I'm
> saying, since I've read the blog post a while ago and the follow
> discussions explaining what Rasmus was saying. You need a Masters
> You know, all four resources back up my arguments perfectly. Thank
> you for
> doing my research for me. I will suggest that you reconsider writing
> API, because your time could be better placed with creating some super
> cool feature that users and developers actually need. No offense, if
> I was
> an ass.
> Jacob Santos
> http://www.santosj.name - Personal Blog
> http://funcdoc.wordpress.com - WordPress Function Documentation Blog
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers