Skip site navigation (1) Skip section navigation (2)

Re: Register arbitrary types Framework

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Markus Schaber <schabios(at)logi-track(dot)com>
Cc: PostGreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>,Kris Jurka <books(at)ejurka(dot)com>
Subject: Re: Register arbitrary types Framework
Date: 2004-03-18 21:19:58
Message-ID: 405A127E.1040508@opencloud.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Markus Schaber wrote:

> I also think that the current setObject(int, Object) using an 13-branch
> if(instanceof)-else construct could be sped up by this - of course, at
> the cost of creating the appropriate factory classes. 

'instanceof' is such a common VM operation (it's implied by every cast) 
that I'd expect it to be pretty fast. Is a hashmap lookup actually 
faster than an inlined multibranch 'if' for the number of comparisons we do?

-O

In response to

Responses

pgsql-jdbc by date

Next:From: Markus SchaberDate: 2004-03-18 22:51:43
Subject: Re: Register arbitrary types Framework
Previous:From: Kris JurkaDate: 2004-03-18 17:16:13
Subject: Re: Register arbitrary types Framework

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group