News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder:
Would this be a dumb idea for PHP core?
February 19, 2013 @ 09:26:55

In this new post to his site Kevin Schroeder thinks out loud and wonders if an idea of his is "a dumb idea" to be included into the PHP core - engine state caching.

I was consulting and I would see significant server resources consumed by bootstrapping the apps. Loading config files, loading dependent classes, setting up dependencies, initializing ACL's, and the list goes on and on. One of the ways to negate the effect would be to cache a bootstrap object and then pull that object from the cache at the start of the request. However, the problem is that unserialization can actually end up taking more time than the bootstrap process itself.

He wonders if, after the initial bootstrapping happened, a method could be called (his example is "init_engine_state") that would cache the Zend Engine's current state and pass that to a callback function. This would cache everything - objects, variables, classes, etc - all pre-interpreted into memory and make them easy to reuse on future executions. What do you think? Share your thoughts in the comments of the post.

0 comments voice your opinion now!
engine state cache zendengine bootstrap callback


blog comments powered by Disqus

Similar Posts

System Architect: Integrate PHP application with Solr search engine

PHPClasses.org: Lately in PHP Podcast #43 - "Is Facebook HHVM going to Replace Zend Engine in PHP6"

MelonFire Community: Caching Web Sites With PEAR Cache

SitePoint PHP Blog: HHVM vs Zend Engine in PHP 6

Rasmus Larsson: Building a template engine in PHP


Community Events





Don't see your event here?
Let us know!


series framework conference interview threedevsandamaybe community opinion list laravel podcast version api release composer introduction language symfony unittest voicesoftheelephpant configure

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework