Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BE4A19FBAE1 for ; Tue, 27 Feb 2007 10:09:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 10618-03 for ; Tue, 27 Feb 2007 10:09:29 -0400 (AST) X-Greylist: delayed 00:26:23.14692 by SQLgrey-1.7.4 Received: from cuaima.ica.luz.ve (unknown [150.185.222.161]) by postgresql.org (Postfix) with ESMTP id B61399FBA43 for ; Tue, 27 Feb 2007 10:09:29 -0400 (AST) Received: from salamandra.ica.luz.ve (unknown [10.2.208.203]) by cuaima.ica.luz.ve (Postfix) with ESMTP id E696AC19E79C for ; Tue, 27 Feb 2007 09:45:55 -0400 (VET) From: Nelson Arape To: pgsql-jdbc@postgresql.org Subject: Re: Minor performance improvements Date: Tue, 27 Feb 2007 09:45:55 -0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_TYD5Fd/00iQmixF" Message-Id: <200702270945.55584.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/151 X-Sequence-Number: 16707 --Boundary-00=_TYD5Fd/00iQmixF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Post this time to the list, the last time I sent it to Kris directly, sorry for that --Boundary-00=_TYD5Fd/00iQmixF Content-Type: message/rfc822; name="forwarded message" Content-Transfer-Encoding: 7bit Content-Description: Nelson Arape : Re: [JDBC] Minor performance improvements Content-Disposition: inline From: Nelson Arape To: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] 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> 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 --Boundary-00=_TYD5Fd/00iQmixF--