Vectors in 7.1 ResultSets

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: "'pgsql-jdbc(at)postgresql(dot)org'" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Vectors in 7.1 ResultSets
Date: 2001-05-01 02:42:53
Message-ID: 3AEE22AD.BA2EE82C@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Why do the 7.1 ResultSets use Vectors where they used arrays in 7.0.x?
Vectors are slower and create more garbage and have the overhead of
synchronization for every method call. If there is some reason
pre-sized arrays can't be used then ArrayLists should be used instead.

--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joseph Shraibman 2001-05-01 02:46:51 Re: BigDecimal instead of Integer in 7.1
Previous Message Tom Lane 2001-05-01 02:40:56 Re: BigDecimal instead of Integer in 7.1