From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap |
Date: | 2012-05-15 10:25:50 |
Message-ID: | CADK3HH+zWRhwydvEsVqG-e0_5x3FuBP=RXF21LQ8Zbue9CRTuw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Sun, May 6, 2012 at 12:25 PM, Mikko Tiihonen
<mikko(dot)tiihonen(at)nitorcreations(dot)com> wrote:
> Hi,
>
> Here are two small cleanup patches.
>
> First one replaces all Vector references with List (usage) and ArrayList
> (creation).
> Second replaces all Hashtable references with Map (usage) and HashMap
> (creation).
>
> Reasons:
> * Theoretically faster since the ArrayList/HashMap are not synchronized
> * Using interfaces makes changing of List/Map implementations easier at
> later time
> * Vector/Hashtable were deprecated already in Java 1.2
>
> -Mikko
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
Mikko,
Thanks for the patch it has been applied to master
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2012-05-15 10:47:50 | Re: Patch: Add support for hstore extension - and map it to/from java.util.Map |
Previous Message | Dave Cramer | 2012-05-15 09:37:01 | Re: Re: Issues with IN-OUT parameters for Array of Objects in EDB using Java |