Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50573 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53057 invoked from network); 25 Nov 2010 19:47:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2010 19:47:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=jonah.harris@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jonah.harris@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: jonah.harris@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:41915] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/6D-16484-14DBEEC4 for ; Thu, 25 Nov 2010 14:47:14 -0500 Received: by wwb22 with SMTP id 22so179455wwb.11 for ; Thu, 25 Nov 2010 11:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=pBchGrOEmtmbbANovCamtW81iWSLfyZQ/f3SkeXsqHg=; b=aeHTUsgt5JmsPVMd61Hp2/NOrEFDGjRwiDsvzG4OcGgpPOxf997O/bnIXKV89tJssn 6Phd3CgjGq1lCqqXIboFnOITiEFQulWWec/q0OtsuKvlMEQUKnhwH7H9skm9pBYu9JX4 u5xZrSMetzb/rAeGdpQ4C/1fERZ94UCeiW3c0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vfXD6zmGdsUoUTQEurJxyUsc3hqzBcaAwC2hZq8ljSOlQx4voNEo3o70kJsfZCMgU1 IN8A9U0Iu0Ltl58mQIiDCPdgVJ2HniTbXDdG49lAWrEM2JHQSQkPgAKKSYxeLnh5hdAL oLWdeHLCfpwk9hBEO2le8nvhDZVyIPsclHdgA= MIME-Version: 1.0 Received: by 10.227.144.71 with SMTP id y7mr1375534wbu.148.1290714430070; Thu, 25 Nov 2010 11:47:10 -0800 (PST) Received: by 10.227.0.99 with HTTP; Thu, 25 Nov 2010 11:47:10 -0800 (PST) In-Reply-To: References: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> Date: Thu, 25 Nov 2010 14:47:10 -0500 Message-ID: To: Pierre Joye Cc: Andi Gutmans , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001636832e7c1c94b20495e5dfff Subject: Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) From: jonah.harris@gmail.com ("Jonah H. Harris") --001636832e7c1c94b20495e5dfff Content-Type: text/plain; charset=ISO-8859-1 On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye wrote: > For the record here, igbinary is a very good example of such optimization: > > http://opensource.dynamoid.com/ igbinary is a nice extension indeed. However, for those of us who have environments which include multiple programming languages, custom serializations become a PITA. As such, we generally go with something more portable such as Avro or straight JSON. Awhile back, I had done some work rewriting the JSON serialization functions to use the fast (and BSD licensed) yajl JSON parser (https://github.com/lloyd/yajl). Initial benchmarks showed a 4-7% performance improvement in serialization/deserialization. I'll see if I can dig it up--hopefully it's not on my dead computer. -- Jonah H. Harris Blog: http://www.oracle-internals.com/ --001636832e7c1c94b20495e5dfff--