Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25822 invoked from network); 25 Nov 2010 17:51:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2010 17:51:54 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain prohost.org designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:36076] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/A8-16484-932AEEC4 for ; Thu, 25 Nov 2010 12:51:54 -0500 Received: by fxm11 with SMTP id 11so988530fxm.29 for ; Thu, 25 Nov 2010 09:51:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.87.3 with SMTP id u3mr1053349fal.131.1290707510358; Thu, 25 Nov 2010 09:51:50 -0800 (PST) Received: by 10.223.126.199 with HTTP; Thu, 25 Nov 2010 09:51:50 -0800 (PST) In-Reply-To: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> References: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> Date: Thu, 25 Nov 2010 12:51:50 -0500 Message-ID: To: Andi Gutmans Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) From: ilia@prohost.org (Ilia Alshanetsky) I think there is much to gain by improving the serialization speed in PHP. It is used everywhere from caches like memcache, to sessions or manual data input into DB. I would say that there are very few non-trivial apps that would not benefit from a more compact and faster serializer. In our specific work-use-case switching to igbinary improved the speed of the overall page generation by 2-3%. On Thu, Nov 25, 2010 at 12:47 PM, Andi Gutmans wrote: > Hi, > > Completely different topic :) > > I've been looking a bit into performance around json encoding, hashing+encryption (aes) and serialize()/unserialize(). Data that is marshaled and often transmitted over the wire. > > I know there have been some high-end apps that have benefited from some custom serializers, etc... (typically platform dependent). > I wonder if people here think improvements in these areas would move the needle for the majority of mainstream apps or not. > > Thanks, > > Andi >