Re: Improve PHP 7 serialization

From: Date: Tue, 23 Sep 2014 11:17:35 +0000
Subject: Re: Improve PHP 7 serialization
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-77525@lists.php.net to get a copy of this message
Performance testing, Msgpack VS Igbinary igbinary: -20% slower, data size ~5% Advantage Msgpack, he works fast, and this format understood by many technologies - Java, Python, Lua in Redis. 2014-09-23 12:20 GMT+03:00 Paul Dragoonis <dragoonis@gmail.com>: > Hi <person hiding behind a project>, > > Backwards compatibility is one hurdle, but if you wipe all your serialised > data then begin to re-serialise using the new approach then you're fine. > > As for what to use msgpack or igbinary, well there's already good support > for igbinary in PHP thanks to Pierre and others. You should benchmark > igbinary vs msgpack and come back with your findings if we're to evaluate > alternative serialization libraries. > > Many thanks, > Paul > > > On Tue, Sep 23, 2014 at 12:23 AM, Park Framework <park.framework@gmail.com> > wrote: >> >> PHP serialization is slowest in PHP Session, clients NoSQL, ... >> I would like to have in PHP 7, a new serialization algorithm or custom >> handler to serialize. >> >> My opinion is that the best choice is to use msgpack, it is >> +110% faster >> -30% data size >> >> HHVM discussed this issue, but all boils down to backward compatibility >> with PHP >> https://github.com/facebook/hhvm/issues/2654 >> >> What do you think about this, maybe it's time to change the old >> algorithm serialization, on something better? >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >

« previous php.internals (#77525) next »