Re: Register arbitrary types Framework - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Register arbitrary types Framework
Date
Msg-id 405A127E.1040508@opencloud.com
Whole thread Raw
In response to Re: Register arbitrary types Framework  (Markus Schaber <schabios@logi-track.com>)
Responses Re: Register arbitrary types Framework  (Markus Schaber <schabios@logi-track.com>)
List 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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Register arbitrary types Framework
Next
From: Markus Schaber
Date:
Subject: Re: Register arbitrary types Framework