Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77525 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91001 invoked from network); 23 Sep 2014 11:17:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 11:17:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.41 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 209.85.219.41 mail-oa0-f41.google.com Received: from [209.85.219.41] ([209.85.219.41:36303] helo=mail-oa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/1E-09206-3D651245 for ; Tue, 23 Sep 2014 07:17:39 -0400 Received: by mail-oa0-f41.google.com with SMTP id i7so3270117oag.28 for ; Tue, 23 Sep 2014 04:17:35 -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=1drlpK5ik9n54GziolxWxKj9OxEYgs3JMpT3bGpURE8=; b=TUT02XBLhaiovJ/bhHPPmwFYBUaZU7fpsiwAC1SyC3VPCAuRZH8gOX8roPyddN4+a6 rVrC4m830NvV3Tlbgg1N/Km8ofk77XP4gwEycc0f2Kyt/vbKUClE95Klf+MmtEFCq5ox dggOd7zo23i8Wr9c53W3pEpwt0Lubi2rXh0JSbfaSfCqinijK/zZWwOzTWZkQcHYA6zs daehJsY++X/bd85QvM/DMofrJyofbgdU2KGuwQjyOOd8q/UwPcZn5+ku8F+Jd+pwNKme T9lDsH5HDgFRhLEWd+PhL0NBF2ExABRK67BLb8vn8yIzC6XQfJHoexbneLTtv4a4byM6 Zz/w== MIME-Version: 1.0 X-Received: by 10.182.19.195 with SMTP id h3mr33262943obe.43.1411471055688; Tue, 23 Sep 2014 04:17:35 -0700 (PDT) Received: by 10.76.23.37 with HTTP; Tue, 23 Sep 2014 04:17:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 14:17:35 +0300 Message-ID: To: Paul Dragoonis Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: park.framework@gmail.com (Park Framework) 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 > 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 >> >