Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98883 invoked by uid 1010); 18 Jul 2004 17:24:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98791 invoked from network); 18 Jul 2004 17:24:43 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 18 Jul 2004 17:24:43 -0000 Received: (qmail 15809 invoked from network); 18 Jul 2004 17:24:41 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 18 Jul 2004 17:24:41 -0000 Message-ID: <5.1.0.14.2.20040718102213.0369ceb8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 18 Jul 2004 10:24:38 -0700 To: Bernd =?iso-8859-1?Q?R=F6mer?= , PHP Developers Mailing List In-Reply-To: <40FAA26A.7090001@wgserve.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] binary serializer/unserializer and session.serialize_handler From: andi@zend.com (Andi Gutmans) References: <40FAA26A.7090001@wgserve.de> Hi Bernd, It seems you are using zend_dynamic_array() which is something I wrote a=20 long time ago and never got to completely testing it. Seems to me that=20 there's a problem there with the erealloc() call. It could relocate the=20 data storage and, therefore, all of your pointers to that storage might end= =20 up being wrong. Can you explain exactly what kind of data structure you require? I am=20 planning on working on a static allocator (not stack) soon and I'm just=20 wondering if that would suit your needs or not. Thanks, Andi At 06:16 PM 7/18/2004 +0200, Bernd R=F6mer wrote: >hi... > >i implemented and shortly benchmarked a binary serializer (which means=20 >serializing and unserializing php-variables into a binary representation).= =20 >At the moment it is written as an extension, but perhaps it is interesting= =20 >to let it become a standard-extension or part of ext/standard (var.c) and= =20 >ext/session (to avoid registering the serialize_handler at runtime). Here= =20 >is the url to the extension: > > http://fum.no-ip.com/php/fbinary/ > >There are some additional informations about it and also the benchmarks. >Hopefully it is interesting for anybody... > >Bernd Roemer > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php