<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-32710003.post5002605807441429825..comments</id><updated>2011-01-06T18:44:17.418+01:00</updated><category term='mobile'/><category term='sonar'/><category term='mail'/><category term='mysql-admin-cookbook'/><category term='movies'/><category term='bug'/><category term='apple'/><category term='development'/><category term='registry'/><category term='ipad'/><category term='star wars'/><category term='gnome'/><category term='cocoa'/><category term='firefox'/><category term='osgi'/><category term='ivy'/><category term='ios'/><category term='mia'/><category term='internet'/><category term='findbugs'/><category term='xtext'/><category term='windows'/><category term='eclipse'/><category term='hardware'/><category term='safari'/><category term='database'/><category term='linux'/><category term='apache'/><category term='xml'/><category term='jax'/><category term='caveat'/><category term='cvs'/><category term='office'/><category term='java'/><category term='mysql'/><category term='internet explorer'/><category term='x11'/><category term='mac os x'/><category term='ssh'/><category term='misc'/><category term='xcode'/><category term='groovy'/><category term='ipod'/><category term='software'/><category term='mac'/><category term='standards'/><category term='quality'/><category term='network'/><category term='fun'/><category term='ubuntu'/><category term='vcs'/><category term='nvidia'/><category term='itunes'/><title type='text'>Comments on Daniel Schneller's Blog: Collection Performance - Don't become too lazy</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.danielschneller.com/feeds/5002605807441429825/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html'/><author><name>Daniel Schneller</name><uri>http://www.blogger.com/profile/10703859800169283952</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_jZVk_i0f9PM/SkHQpS95gLI/AAAAAAAAB1U/f045AhTI3mI/S220/schneller_klein.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32710003.post-8655173841245829857</id><published>2011-01-06T18:44:17.418+01:00</published><updated>2011-01-06T18:44:17.418+01:00</updated><title type='text'>Hi!

Interesting article. I&amp;#39;m guessing the ori...</title><content type='html'>Hi!&lt;br /&gt;&lt;br /&gt;Interesting article. I&amp;#39;m guessing the original code is not copy/pasted since it appears to be broken (in addition to being very inefficient). Specifically, tempCount == chunkSize will never be true inside the loop, and also I suspect the references to &amp;quot;tCurrent&amp;quot; should really refer to the local declared as &amp;quot;current&amp;quot;?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Daniel K</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/8655173841245829857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/8655173841245829857'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html?showComment=1294335857418#c8655173841245829857' title=''/><author><name>DanielKr</name><uri>http://www.blogger.com/profile/13473988721962275836</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html' ref='tag:blogger.com,1999:blog-32710003.post-5002605807441429825' source='http://www.blogger.com/feeds/32710003/posts/default/5002605807441429825' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1077223558'/></entry><entry><id>tag:blogger.com,1999:blog-32710003.post-3317388380763665262</id><published>2010-11-17T15:58:31.193+01:00</published><updated>2010-11-17T15:58:31.193+01:00</updated><title type='text'>Ultimately removeAll will be doing something along...</title><content type='html'>Ultimately removeAll will be doing something along the lines of a nested iteration, depending on the underlying List implementation used. If allIter.remove is used, none of that repeated iteration is required. Should result in some improvement, although I&amp;#39;d agree probably not to the extent of using indexes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/3317388380763665262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/3317388380763665262'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html?showComment=1290005911193#c3317388380763665262' title=''/><author><name>MrPotes</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html' ref='tag:blogger.com,1999:blog-32710003.post-5002605807441429825' source='http://www.blogger.com/feeds/32710003/posts/default/5002605807441429825' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-699719624'/></entry><entry><id>tag:blogger.com,1999:blog-32710003.post-8078681526664446616</id><published>2010-11-17T15:44:30.930+01:00</published><updated>2010-11-17T15:44:30.930+01:00</updated><title type='text'>Even though I did not try this, it would probably ...</title><content type='html'>Even though I did not try this, it would probably be the same - as removeAll simply iterates the passed collection and calls remove for each item, the amount of rearranging the backing store would be needed. Perhaps a subtle difference, depending on whether the iterator internally already knew the array index or not, maybe saving that lookup. But that lookup is generally hardly measurable in lists of that size.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/8078681526664446616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/8078681526664446616'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html?showComment=1290005070930#c8078681526664446616' title=''/><author><name>Daniel Schneller</name><uri>http://www.blogger.com/profile/10703859800169283952</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_jZVk_i0f9PM/SkHQpS95gLI/AAAAAAAAB1U/f045AhTI3mI/S220/schneller_klein.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html' ref='tag:blogger.com,1999:blog-32710003.post-5002605807441429825' source='http://www.blogger.com/feeds/32710003/posts/default/5002605807441429825' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-641496215'/></entry><entry><id>tag:blogger.com,1999:blog-32710003.post-6074847522072565262</id><published>2010-11-17T11:28:21.823+01:00</published><updated>2010-11-17T11:28:21.823+01:00</updated><title type='text'>I&amp;#39;d be interested to know what the difference ...</title><content type='html'>I&amp;#39;d be interested to know what the difference in timings would be if (using the original code) every time result.add was called, you also called allIter.remove(), rather than doing the removeAll at the end?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/6074847522072565262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/6074847522072565262'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html?showComment=1289989701823#c6074847522072565262' title=''/><author><name>MrPotes</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html' ref='tag:blogger.com,1999:blog-32710003.post-5002605807441429825' source='http://www.blogger.com/feeds/32710003/posts/default/5002605807441429825' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-699719624'/></entry><entry><id>tag:blogger.com,1999:blog-32710003.post-6569642492061030422</id><published>2010-11-17T09:31:39.955+01:00</published><updated>2010-11-17T09:31:39.955+01:00</updated><title type='text'>Good to know.... Sometime</title><content type='html'>Good to know.... Sometime</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/6569642492061030422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32710003/5002605807441429825/comments/default/6569642492061030422'/><link rel='alternate' type='text/html' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html?showComment=1289982699955#c6569642492061030422' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.danielschneller.com/2010/11/collection-performance-dont-become-too.html' ref='tag:blogger.com,1999:blog-32710003.post-5002605807441429825' source='http://www.blogger.com/feeds/32710003/posts/default/5002605807441429825' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1531505593'/></entry></feed>
