Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72101 invoked from network); 27 Nov 2010 07:13:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2010 07:13:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:56919] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/D1-58846-4BFA0FC4 for ; Sat, 27 Nov 2010 02:13:57 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.15]) by us-mr1.zend.com (Postfix) with ESMTP id 162222DD52; Sat, 27 Nov 2010 00:02:25 -0800 (PST) Received: from US-EX2.zend.net ([fe80::9c09:d53f:7b4:5880]) by US-EX2.zend.net ([fe80::1d86:6a3c:13cc:f3a7%11]) with mapi; Fri, 26 Nov 2010 23:13:54 -0800 To: Ilia Alshanetsky , Pierre Joye CC: "Jonah H. Harris" , "internals@lists.php.net" Thread-Topic: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) Thread-Index: AQHLjNT++zNqh7Zu50i0Zrnk5hEuEZODH4oAgAABPICAAEnRgIABgMQw Date: Sat, 27 Nov 2010 07:13:50 +0000 Message-ID: <8757232E56758B42B2EE4F9D2CA019C917921D@US-EX2.zend.net> References: <8757232E56758B42B2EE4F9D2CA019C9154CB7@US-EX2.zend.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize()) From: andi@zend.com (Andi Gutmans) It's nice but as long as the browsers don't implement it natively then it's= less useful for server to client communication. Of course can still be quite useful with custom I/O or data sources that im= plement it natively i.e. mongodb. > -----Original Message----- > From: Ilia Alshanetsky [mailto:ilia@prohost.org] > Sent: Thursday, November 25, 2010 4:16 PM > To: Pierre Joye > Cc: Jonah H. Harris; Andi Gutmans; internals@lists.php.net > Subject: Re: [PHP-DEV] Performance of buffer based functionality (JSON, A= ES, > serialize()) >=20 > 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 introd= uce > custom type on top of standard BSON. However from compactness and > consistency standpoint it looks fairly appealing. >=20 > 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 > wrote: > >>> > >>> For the record here, igbinary is a very good example of such optimiza= tion: > >>> > >>> 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 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 > > > >