Re: Performance of buffer based functionality (JSON, AES, serialize())
| From: | Pierre Joye | Date: | Thu, 25 Nov 2010 19:51:35 +0000 |
| Subject: | Re: Performance of buffer based functionality (JSON, AES, serialize()) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50574@lists.php.net to get a copy of this message | ||
On Thu, Nov 25, 2010 at 8:47 PM, Jonah H. Harris <jonah.harris@gmail.com> wrote:
> On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye <pierre.php@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 programming languages, custom
> serializations become a PITA. As such, we generally go with something more
> portable such as Avro or straight JSON. Awhile back, I had done some work
> rewriting the JSON serialization functions to use the fast (and BSD
> licensed) yajl JSON parser (https://github.com/lloyd/yajl). Initial
> benchmarks showed a 4-7% performance improvement in
> serialization/deserialization.
Good point indeed. That makes me think about bson
(http://bsonspec.org/), which is used by mongodb for example.
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org