[PEPr] Comment on Caching::Cache_Shm

From: Date: Fri, 18 Mar 2005 21:07:59 +0000
Subject: [PEPr] Comment on Caching::Cache_Shm
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36756@lists.php.net to get a copy of this message
bertrand Gugger (http://pear.php.net/user/toggg) has commented on the proposal for Caching::Cache_Shm. Comment: Hi ! Your shared memory segment contains a unique array with all cached stuff ! So each request will unserialize the whole. You could better have one variable per $this->_id to save resources. Did you try the shmop functions ? They are perhaps more portable and efficient but need a per byte handling (not saved as variables). $shm_key = ftok(__FILE__, 't'); gives a unique key without more stat(). Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=230 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#36756) next »