pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nelson Arape <narape@ica.luz.ve>
To: pgsql-jdbc@postgresql.org
Subject: Re: Minor performance improvements
Date: Tue, 27 Feb 2007 09:42:04 -0400
Message-ID: <200702270942.04388.narape@ica.luz.ve> (raw)
In-Reply-To: <Pine.BSO.4.64.0702270319360.11284@leary.csoft.net>
References: <F0238EBA67824444BC1CB4700960CB4802540178@dmpeints002.isotach.com>
	<Pine.BSO.4.64.0702262316480.1687@leary.csoft.net>
	<Pine.BSO.4.64.0702270319360.11284@leary.csoft.net>

Hi Kris

I think that your patch could be better if instead of using the "signed" right 
shift operator (>>) followed by a bit mask, use directly the "unsigned" right 
shift operator (>>>)

So 
((val >> 24) & 0xFF)
would better as
val >>> 24

By the way great work folks

Nelson ArapƩ
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ó:
> On Mon, 26 Feb 2007, Kris Jurka wrote:
> > I've created the attached test which tests the original code (Orig), your
> > code (Two), and my suggestion of an int4buf (Three) and got the following
> > 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



view thread (11+ messages)  latest in thread

Message-ID: <200702270942.04388.narape@ica.luz.ve>
Permalink:  ../200702270942.04388.narape@ica.luz.ve/
Also on:    postgresql.org/message-id/200702270942.04388.narape@ica.luz.ve

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: narape@ica.luz.ve
  Subject: Re: Minor performance improvements
  In-Reply-To: <200702270942.04388.narape@ica.luz.ve>
  References: <F0238EBA67824444BC1CB4700960CB4802540178@dmpeints002.isotach.com> <Pine.BSO.4.64.0702262316480.1687@leary.csoft.net> <Pine.BSO.4.64.0702270319360.11284@leary.csoft.net> <200702270942.04388.narape@ica.luz.ve>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox