Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: setSize ArrayList, when will it come? Date: Tue, 09 Aug 2011 16:03:40 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <1eadnROad6gX8NzTnZ2dnUVZ_tydnZ2d@earthlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 9 Aug 2011 23:03:19 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mz/LDSJwiWnk3Jnnqg7x+Q"; logging-data="7203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yKVVDNB2CW4oAzMmIGypu" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:h57CTy+Acc+zxVGLiqghl1+nPFU= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6934 On 8/9/2011 3:36 PM, Jan Burse wrote: > This is not efficient. You don't get it what the > problem is. I really really need a highly efficient > setSize() specialized, otherwise my stuff will not work. That's BS. Either it's sparse enough to use a Map or it's too large to use ArrayList and that would make it too large to use Vector. Just use arrays, they're a lot faster than a Vector or any List. Or just get a faster computer. I should have long since killed this thread. -- Knute Johnson