<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Indexed example"]]></title>
		<link>http://forum.space4j.org/posts/list/1.page</link>
		<description><![CDATA[Latest messages posted in the topic "Indexed example"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Indexed example</title>
				<description><![CDATA[ Hi,<br /> <br /> I have question about the indexed example. It's about this comment:<br />     <br />           // this is not good as we are transversing the whole list twice!<br />           // TODO: Create custom iterator for MultiSortedMap to avoid this?<br /> <br /> where the list is traversed twice?<br /> <br /> <br /> Thanks]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/9/12.page</guid>
				<link>http://forum.space4j.org/posts/preList/9/12.page</link>
				<pubDate><![CDATA[Sat, 18 Oct 2008 06:49:29]]> GMT</pubDate>
				<author><![CDATA[ zlaja]]></author>
			</item>
			<item>
				<title>Re:Indexed example</title>
				<description><![CDATA[ <br /> findUsers iterates through all the found items before it returns the result, which is in turn iterated again.<br /> <br /> See the problem?<br /> <br /> A better approach instead of iterating through all elements and sticking them in a new list object would be to create a custom iterator so that the findUsers method would return this iterator.<br /> <br /> This is not a problem for small results, but for big results (&gt;100k) this is not a good idea.<br /> <br /> Did you get it?<br /> <br /> To summarize: findUsers return a collection that we just iterate through. Returning a iterator would be more appropriate for large subsets.<br /> <br /> But, if you assume that you want a Collection with the returned elements, then this implemenation is appropriate. <img src="http://forum.space4j.org//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif"/> ]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/9/15.page</guid>
				<link>http://forum.space4j.org/posts/preList/9/15.page</link>
				<pubDate><![CDATA[Sun, 26 Oct 2008 16:08:50]]> GMT</pubDate>
				<author><![CDATA[ saoj]]></author>
			</item>
			<item>
				<title>Re:Indexed example</title>
				<description><![CDATA[ Yes,<br /> <br /> The second iteration will be done in a client code.<br /> <br /> <br /> Thanks for reply]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/9/18.page</guid>
				<link>http://forum.space4j.org/posts/preList/9/18.page</link>
				<pubDate><![CDATA[Mon, 27 Oct 2008 04:42:05]]> GMT</pubDate>
				<author><![CDATA[ zlaja]]></author>
			</item>
	</channel>
</rss>
