Re: Anyone wrote persistent variable extension?

From: Date: Wed, 10 Apr 2002 07:16:28 +0000
Subject: Re: Anyone wrote persistent variable extension?
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-82444@lists.php.net to get a copy of this message
Edin Kadribasic wrote:
I'm using sysvshm and sysvsem for this sort of things. It did provide dramatic speed difference with a static array of some 130 KB. However sysvshm extension does not work on win32. I don't know if shmop works on that platform.
I know there is sysvshm. But, I don't actually used the module, yet. So correct me if I'm wrong. I think you are using serialize()/unserialize() to save data, right? I would like to get rid of serialize()/unserialize() also. Since, I have large web site that has relatively large menu definition as array. unserialize() needs about 0.4 sec for 1MB serialized data on Celeron 466/linux. (It's a array of about 2000 elements) Production machine is much faster but it makes a lot slower loading data with unserialize() for sure.
If you can make portable way of introducing $_PERSISTENT I'm all for it. If not, I have very little to gain over using sysvshm extension directly.
I might be missing something. Please let me know if I do. -- Yasuo Ohgaki

« previous php.dev (#82444) next »