RE: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-12-02 Thread Jonathan Bond-Caron
On Tue Nov 30 03:26 AM, Julien Pauli wrote: I guess serialize mechanism cant use any char that can be part of a PHP variable. And _ can. As property names respect binary compatibility, the only char that can be used to mark private properties is actually the NULL byte. Ping me if I'm wrong.

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-30 Thread Julien Pauli
I guess serialize mechanism cant use any char that can be part of a PHP variable. And _ can. As property names respect binary compatibility, the only char that can be used to mark private properties is actually the NULL byte. Ping me if I'm wrong. But I'm +1 for improving the serialize() speed, I

RE: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-28 Thread Jonathan Bond-Caron
On Thu Nov 25 12:47 PM, Andi Gutmans wrote: I know there have been some high-end apps that have benefited from some custom serializers, etc... (typically platform dependent). I wonder if people here think improvements in these areas would move the needle for the majority of mainstream apps

RE: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-26 Thread Andi Gutmans
...@prohost.org] Sent: Thursday, November 25, 2010 4:16 PM To: Pierre Joye Cc: Jonah H. Harris; Andi Gutmans; internals@lists.php.net Subject: Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) Just read over the BSON spec, looks fairly interesting, the only bit

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-25 Thread Ilia Alshanetsky
I think there is much to gain by improving the serialization speed in PHP. It is used everywhere from caches like memcache, to sessions or manual data input into DB. I would say that there are very few non-trivial apps that would not benefit from a more compact and faster serializer. In our

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-25 Thread Pierre Joye
hi, For the record here, igbinary is a very good example of such optimization: http://opensource.dynamoid.com/ On Thu, Nov 25, 2010 at 6:47 PM, Andi Gutmans a...@zend.com wrote: Hi, Completely different topic :) I've been looking a bit into performance around json encoding,

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-25 Thread Jonah H. Harris
On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye pierre@gmail.com wrote: For the record here, igbinary is a very good example of such optimization: http://opensource.dynamoid.com/ igbinary is a nice extension indeed. However, for those of us who have environments which include multiple

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-25 Thread Pierre Joye
On Thu, Nov 25, 2010 at 8:47 PM, Jonah H. Harris jonah.har...@gmail.com wrote: On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye pierre@gmail.com wrote: For the record here, igbinary is a very good example of such optimization: http://opensource.dynamoid.com/ igbinary is a nice extension

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-25 Thread Ilia Alshanetsky
Just read over the BSON spec, looks fairly interesting, the only bit that appears to be missing for PHP purposes is object support. We would need to introduce custom type on top of standard BSON. However from compactness and consistency standpoint it looks fairly appealing. On Thu, Nov 25, 2010