Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77517 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73909 invoked from network); 23 Sep 2014 09:20:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 09:20:04 -0000 Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.175 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.216.175 mail-qc0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:46381] helo=mail-qc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/0B-09206-24B31245 for ; Tue, 23 Sep 2014 05:20:03 -0400 Received: by mail-qc0-f175.google.com with SMTP id o8so1408592qcw.6 for ; Tue, 23 Sep 2014 02:20:00 -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=s37o0FLybpIEL4PYqGUMObqqSs2nZiIfrnKQAYDLhkQ=; b=aCjokvc35xEzodI95wyOcG97wBIwth+D2LizdABYxQYXn5roegmyob+XYDTupWSzfz Rx4kWjJPzwckmWL3CWbD99e9Qjj+XDorhdeQ/gAp2Z0r96NcOkJMg79kCN4CPZ3VpMk5 z8hOUSF9xd6r24QPvU1kbQL7prgvo34oXuVlqmxaalIa8Wn4GKps426sIMiqx5Zr/Utb SAxWuzMsnPBFeFQAJ9xk3RfeF5G4KmQe7oenOerDSE2Hg0quRUdmtEyt8l+clDvqf410 TQvATv2OW7zbjDLJWVBHLw0vuC/sKkEr6MqFIfKSEorZEw9tglhzTq2XroVsMT5gCeiN P+6A== MIME-Version: 1.0 X-Received: by 10.224.111.193 with SMTP id t1mr990339qap.103.1411464000443; Tue, 23 Sep 2014 02:20:00 -0700 (PDT) Received: by 10.229.97.71 with HTTP; Tue, 23 Sep 2014 02:20:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 10:20:00 +0100 Message-ID: To: Park Framework Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b6737f05c1f150503b8120f Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: dragoonis@gmail.com (Paul Dragoonis) --047d7b6737f05c1f150503b8120f Content-Type: text/plain; charset=UTF-8 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 > > --047d7b6737f05c1f150503b8120f--