Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92583 invoked from network); 23 Sep 2014 11:22:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 11:22:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.45 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.192.45 mail-qg0-f45.google.com Received: from [209.85.192.45] ([209.85.192.45:54946] helo=mail-qg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/6E-09206-B0851245 for ; Tue, 23 Sep 2014 07:22:52 -0400 Received: by mail-qg0-f45.google.com with SMTP id q108so4242848qgd.4 for ; Tue, 23 Sep 2014 04:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pxkyEUEZDQUOu02JNrQqwu4YryIJLkLKqz4a//avZfI=; b=gYqwL9FmRTPDu9PphW+e3wQDcG7cv7P6LRlvtYuoc4+GUrgtcDQwn/Xsd/OTI7D80O XMUlJZnGYkQSJz+UJOB2EF3lkCSV9mSKQ3ppBo5/zDTNiemSUJyKqn+xPXlzUg1NFOVO ztS8J/JpRjH0VlIn8IenLXcB0xItiI8byAGCV30O+wHifivSyPa1rBEdA/MNMJAGkl3V wwsAFV1Nl+wjhWGALZ1hjFZ519KQd+L1uSLgl0IzGSDCUPpywLgzWu+4bDiEUz7b2E7Q YvOvE+nZ3QphLtXZTiViwhmnkHSdJn07APIeptDao5vbT6Ke0tG+gKxUleB5lkV3mgHl mTqg== MIME-Version: 1.0 X-Received: by 10.224.151.143 with SMTP id c15mr31194663qaw.10.1411471369544; Tue, 23 Sep 2014 04:22:49 -0700 (PDT) Received: by 10.229.97.71 with HTTP; Tue, 23 Sep 2014 04:22:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 12:22:49 +0100 Message-ID: To: Park Framework Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0149bc1697ac690503b9c91f Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: dragoonis@gmail.com (Paul Dragoonis) --089e0149bc1697ac690503b9c91f Content-Type: text/plain; charset=UTF-8 Write an extension for it then, also share your benchmarks :) On Tue, Sep 23, 2014 at 12:17 PM, Park Framework wrote: > 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 : > > Hi , > > > > 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 > >> > > > --089e0149bc1697ac690503b9c91f--