<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Importance of specifying initial capacity while instantiating ArrayList and HashMap</title>
	<atom:link href="http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/</link>
	<description></description>
	<lastBuildDate>Sun, 27 May 2012 04:44:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Venkat</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-509</link>
		<dc:creator><![CDATA[Venkat]]></dc:creator>
		<pubDate>Tue, 05 May 2009 12:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-509</guid>
		<description><![CDATA[I would say be more liberal when specifying the initial capacity for temporary object. For long living objects you can always call trimToSize()  method to minimize the object storage.]]></description>
		<content:encoded><![CDATA[<p>I would say be more liberal when specifying the initial capacity for temporary object. For long living objects you can always call trimToSize()  method to minimize the object storage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-508</link>
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Mon, 04 May 2009 21:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-508</guid>
		<description><![CDATA[Any thoughts on how conservative/liberal to be when estimating the size of the collection? Is it better to waste memory by allocating too much space or to waste resources re-creating the area?]]></description>
		<content:encoded><![CDATA[<p>Any thoughts on how conservative/liberal to be when estimating the size of the collection? Is it better to waste memory by allocating too much space or to waste resources re-creating the area?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-480</link>
		<dc:creator><![CDATA[Venkat]]></dc:creator>
		<pubDate>Tue, 14 Apr 2009 00:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-480</guid>
		<description><![CDATA[Thanks Kiran for your comments.]]></description>
		<content:encoded><![CDATA[<p>Thanks Kiran for your comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiran</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-478</link>
		<dc:creator><![CDATA[Kiran]]></dc:creator>
		<pubDate>Mon, 13 Apr 2009 13:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-478</guid>
		<description><![CDATA[This is really good Post.
Arraylist will increase its size by using following:
int newCapacity = (oldCapacity * 3)/2 + 1; // extract from ArrayList class]]></description>
		<content:encoded><![CDATA[<p>This is really good Post.<br />
Arraylist will increase its size by using following:<br />
int newCapacity = (oldCapacity * 3)/2 + 1; // extract from ArrayList class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohit</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-389</link>
		<dc:creator><![CDATA[Mohit]]></dc:creator>
		<pubDate>Fri, 27 Feb 2009 08:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-389</guid>
		<description><![CDATA[Really Very Good Post............]]></description>
		<content:encoded><![CDATA[<p>Really Very Good Post&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkatachalam Sadasivam</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-10</link>
		<dc:creator><![CDATA[Venkatachalam Sadasivam]]></dc:creator>
		<pubDate>Fri, 15 Feb 2008 10:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-10</guid>
		<description><![CDATA[A comment received from my friend:

One small correction in this example that is creating an object of ArrayList to an ArrayList reference. It would be more appropriate if it is a List or Collection reference (create object to super class or interface reference when ever possible).

Secondly, ArrayList will increase the capacity to 50% where Vector will double the size.  I mean second time it will increase the size by 16 (50%) and not 20 which is double.

Thanks Sajeev and Hari.]]></description>
		<content:encoded><![CDATA[<p>A comment received from my friend:</p>
<p>One small correction in this example that is creating an object of ArrayList to an ArrayList reference. It would be more appropriate if it is a List or Collection reference (create object to super class or interface reference when ever possible).</p>
<p>Secondly, ArrayList will increase the capacity to 50% where Vector will double the size.  I mean second time it will increase the size by 16 (50%) and not 20 which is double.</p>
<p>Thanks Sajeev and Hari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narender</title>
		<link>http://webmoli.com/2008/02/05/importance-of-specifying-initial-capacity-while-instantiating-arraylist-and-hashmap/#comment-4</link>
		<dc:creator><![CDATA[Narender]]></dc:creator>
		<pubDate>Wed, 06 Feb 2008 19:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://venkatsadasivam.wordpress.com/?p=18#comment-4</guid>
		<description><![CDATA[hi,
good post]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
good post</p>
]]></content:encoded>
	</item>
</channel>
</rss>

