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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-jdbc by date

  From Date Subject
Next Message Markus Schaber 2004-03-18 22:51:43 Re: Register arbitrary types Framework
Previous Message Kris Jurka 2004-03-18 17:16:13 Re: Register arbitrary types Framework