Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-16 Thread Andrey Hristov
Ilia Alshanetsky wrote: Shmop does just that, it takes a string of data (any data) and puts it in memory. Serialization is something sysvshm extension does. Ilia shmop is the solution if you want to store only strings but once you want to store arrays or objects then the ser/deser is needed.

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ilia Alshanetsky
Shmop does just that, it takes a string of data (any data) and puts it in memory. Serialization is something sysvshm extension does. Ilia Guillaume Ponçon wrote: > It's true. I know shmop, but the ideal would be to be able to store > large persistent variables in memory without serialization ope

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Guillaume Ponçon
It's true. I know shmop, but the ideal would be to be able to store large persistent variables in memory without serialization operations (without deserialization with each reading). Thanks for these informations. Guillaume Ilia Alshanetsky wrote: If you just want memory access PHP already

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ilia Alshanetsky
If you just want memory access PHP already offers shmop extension for raw data storage and manipulation as well as sysvshm for storing serialized variables. Ilia Guillaume Ponçon wrote: > Ondrej Ivanič wrote: > >>> >>> pecl/apc has apc_store/apc_fetch: >>> >>> http://livedocs.phpdoc.info/index.p

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Guillaume Ponçon
Ondrej Ivanič wrote: pecl/apc has apc_store/apc_fetch: http://livedocs.phpdoc.info/index.php?l=en&q=function.apc-store I know about APC, but IMHO I can't use it. On webservers are Zend Optimizer or mmcache (eAccelerator now) used. But the approach is very interesting. The french java dev

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ondrej Ivanič
pecl/apc has apc_store/apc_fetch: http://livedocs.phpdoc.info/index.php?l=en&q=function.apc-store I know about APC, but IMHO I can't use it. On webservers are Zend Optimizer or mmcache (eAccelerator now) used. -- Ondrej Ivanic ([EMAIL PROTECTED]) -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Rasmus Lerdorf
Ondrej Ivanič wrote: > Al Baker wrote: > >> An embedded opcode cache I think is also essential and the surrounding >> $_MEMORY sounds perfect to me. All Java guys (yeah I know PHP != Java) >> say PHP isn't ready for the enterprise because it can't share >> information between processes other than

[PHP-DEV] shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

2005-08-14 Thread Ondrej Ivanič
Al Baker wrote: An embedded opcode cache I think is also essential and the surrounding $_MEMORY sounds perfect to me. All Java guys (yeah I know PHP != Java) say PHP isn't ready for the enterprise because it can't share information between processes other than arcane sessions. Having PHP become