Objects stored in shmop
Posted: Thu May 10, 2007 12:01 pm
I am developing a system for maintaining dedicated servers. I use a common code base for many of the operations. I'm wondering, is it possible to store common PHP objects in shared memory so they don't have to be re-created on each request and I can avoid using serialization.
Not sure how much sense that makes as each PHP request would initialize the object again, but i'm wondering if using a conditional to determine if the object is loaded and not including it's classes might be a step in the right direction?
Anyone ever try anything like this before to cut down on parsing, etc?
I'm looking into PHP caching engines as well, but I still think that common objects would make sense stored in shmop?
Cheers
Not sure how much sense that makes as each PHP request would initialize the object again, but i'm wondering if using a conditional to determine if the object is loaded and not including it's classes might be a step in the right direction?
Anyone ever try anything like this before to cut down on parsing, etc?
I'm looking into PHP caching engines as well, but I still think that common objects would make sense stored in shmop?
Cheers