Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 830329FBAEE for ; Tue, 27 Feb 2007 10:09:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 42767-05 for ; Tue, 27 Feb 2007 10:09:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from cuaima.ica.luz.ve (unknown [150.185.222.161]) by postgresql.org (Postfix) with ESMTP id 4F8229FBAE1 for ; Tue, 27 Feb 2007 10:09:30 -0400 (AST) Received: from salamandra.ica.luz.ve (unknown [10.2.208.203]) by cuaima.ica.luz.ve (Postfix) with ESMTP id 27943C19E797 for ; Tue, 27 Feb 2007 09:42:05 -0400 (VET) From: Nelson Arape To: pgsql-jdbc@postgresql.org Subject: Re: Minor performance improvements Date: Tue, 27 Feb 2007 09:42:04 -0400 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200702270942.04388.narape@ica.luz.ve> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/149 X-Sequence-Number: 16705 Hi Kris I think that your patch could be better if instead of using the "signed" ri= ght=20 shift operator (>>) followed by a bit mask, use directly the "unsigned" rig= ht=20 shift operator (>>>) So=20 ((val >> 24) & 0xFF) would better as val >>> 24 By the way great work folks Nelson Arap=E9 A happy Postgres JDBC user in his first time post to the list PS: Sorry for my english, not my native language El Martes, 27 de Febrero de 2007 04:21, Kris Jurka escribi=F3: > On Mon, 26 Feb 2007, Kris Jurka wrote: > > I've created the attached test which tests the original code (Orig), yo= ur > > code (Two), and my suggestion of an int4buf (Three) and got the followi= ng > > surprising results: > > Based on that test and a similar attached test for reading, I'm prepared > to apply the attached patch. Let me know what you think. > > Kris Jurka