Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50574 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55341 invoked from network); 25 Nov 2010 19:51:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2010 19:51:40 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.68 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.68 mail-fx0-f68.google.com Received: from [209.85.161.68] ([209.85.161.68:60761] helo=mail-fx0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/ED-16484-B4EBEEC4 for ; Thu, 25 Nov 2010 14:51:39 -0500 Received: by fxm3 with SMTP id 3so277005fxm.11 for ; Thu, 25 Nov 2010 11:51:36 -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 :content-transfer-encoding; bh=cPxl6VEv6UP360MRJnjvPvGd3XR2FflhJjq1nMp9ez0=; b=Uskd9br7dATm4p/ChjAT1iyCRgQoZ0qzWJuKf3GPp+MW5UyPGmjFk16ZUWOD5HMKq3 tBkBMyYoNKm6x8P1XDxjhhtwQxvixCkGCU7Ls0xgc+Hc4yrAX+BdJi9D4/UwSfXppdUv 5Dwbr3NpHT+DViNg7gd8fooCMeF1rjjTqKPwo= 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:content-transfer-encoding; b=FYsVifp0NxxjLHeoKdf+f3HIqQlsnL9nIlSt9q1p1UiglPTQhbtxUCCkRQEJasdyot 1BnqrqgoyHoys/bsXHP55RXNyhdNz1ZEm6g1R13qS99qGe5ZP8XlDbe71Nbhewg2EZAT Dd3flT52aU8UYBjct4b8pkUXyUC0RBdj2vNQk= MIME-Version: 1.0 Received: by 10.223.125.136 with SMTP id y8mr1166788far.149.1290714695945; Thu, 25 Nov 2010 11:51:35 -0800 (PST) Received: by 10.223.83.142 with HTTP; Thu, 25 Nov 2010 11:51:35 -0800 (PST) In-Reply-To: References: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> Date: Thu, 25 Nov 2010 20:51:35 +0100 Message-ID: To: "Jonah H. Harris" Cc: Andi Gutmans , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) From: pierre.php@gmail.com (Pierre Joye) On Thu, Nov 25, 2010 at 8:47 PM, Jonah H. Harris w= rote: > On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye wrote= : >> >> For the record here, igbinary is a very good example of such optimizatio= n: >> >> http://opensource.dynamoid.com/ > > igbinary is a nice extension indeed. =A0However, for those of us who have > environments which include multiple programming languages, custom > serializations become a PITA. =A0As such, we generally go with something = more > portable such as Avro or straight JSON. =A0Awhile back, I had done some w= ork > rewriting the JSON serialization functions to use the fast (and BSD > licensed) yajl JSON parser (https://github.com/lloyd/yajl). =A0Initial > benchmarks showed a 4-7% performance improvement in > serialization/deserialization. Good point indeed. That makes me think about bson (http://bsonspec.org/), which is used by mongodb for example. --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org