why should $_SESSION be slower than other arrays?

From: Date: Thu, 09 Sep 2004 04:52:06 +0000
Subject: why should $_SESSION be slower than other arrays?
Groups: php.general 
Request: Send a blank email to php-general+get-196196@lists.php.net to get a copy of this message
I read in the docs several comments that $_SESSION is slower that other arrays. One comment even had benchmarking info indicating it was about half as fast. I don't understand why this should be. Isn't $_SESSION just a normal super global array like any other, except that it get serialized and written to disk *once at the end* of a request? Why on earth would this impact the performance of reading and writing in the middle of a request? Is there some funkyness going on under the covers that I'm missing? Can it be made to work as I described? l8r Aaron __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail

« previous php.general (#196196) next »