pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: pgsql-jdbc@postgresql.org
Subject: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
Date: Sun, 06 May 2012 19:25:11 +0300
Message-ID: <4FA6A5E7.5000309@nitorcreations.com> (raw)

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

Attachments:

  0001-Change-all-usages-of-Vector-to-List-and-ArrayList.patch (text/x-patch, 0B) download

view thread (9+ messages)  latest in thread

Message-ID: <4FA6A5E7.5000309@nitorcreations.com>
Permalink:  ../4FA6A5E7.5000309@nitorcreations.com/
Also on:    postgresql.org/message-id/4FA6A5E7.5000309@nitorcreations.com

 ·  · 

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: mikko.tiihonen@nitorcreations.com
  Subject: Re: Cleanup patch: Change from Vector/Hashtable to ArrayList/HashMap
  In-Reply-To: <4FA6A5E7.5000309@nitorcreations.com>
  References: <4FA6A5E7.5000309@nitorcreations.com>

* 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