Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50580 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98742 invoked from network); 26 Nov 2010 00:15:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2010 00:15:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; 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:45566] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/24-16484-63CFEEC4 for ; Thu, 25 Nov 2010 19:15:51 -0500 Received: by fxm11 with SMTP id 11so1190178fxm.29 for ; Thu, 25 Nov 2010 16:15:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.87.3 with SMTP id u3mr1394959fal.131.1290730547472; Thu, 25 Nov 2010 16:15:47 -0800 (PST) Received: by 10.223.126.199 with HTTP; Thu, 25 Nov 2010 16:15:47 -0800 (PST) In-Reply-To: References: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> Date: Thu, 25 Nov 2010 19:15:47 -0500 Message-ID: To: Pierre Joye Cc: "Jonah H. Harris" , 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: ilia@prohost.org (Ilia Alshanetsky) Just read over the BSON spec, looks fairly interesting, the only bit that appears to be missing for PHP purposes is object support. We would need to introduce custom type on top of standard BSON. However from compactness and consistency standpoint it looks fairly appealing. On Thu, Nov 25, 2010 at 2:51 PM, Pierre Joye wrote: > On Thu, Nov 25, 2010 at 8:47 PM, Jonah H. Harris = wrote: >> On Thu, Nov 25, 2010 at 2:14 PM, Pierre Joye wrot= e: >>> >>> For the record here, igbinary is a very good example of such optimizati= on: >>> >>> http://opensource.dynamoid.com/ >> >> igbinary is a nice extension indeed. =A0However, for those of us who hav= e >> 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 = work >> 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. > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >