<?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/"
		>
<channel>
	<title>Comments on: Smallest Useful Attribute System Part 2</title>
	<atom:link href="http://meshula.net/wordpress/?feed=rss2&#038;p=174" rel="self" type="application/rss+xml" />
	<link>http://meshula.net/wordpress/?p=174</link>
	<description>Spaces Between</description>
	<lastBuildDate>Mon, 30 Aug 2010 08:23:36 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://meshula.net/wordpress/?p=174&#038;cpage=1#comment-6454</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 27 Jun 2008 06:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://meshula.net/wordpress/?p=174#comment-6454</guid>
		<description>I agree with your point about the maps not changing, although I went down a different path - I have a new version almost ready to post. I ended up using a Ternary Search Tree, as described here: 

http://www.cs.princeton.edu/~rs/strings/

It gets rid of string compares for lookup, so finding an attribute is really quick; search is on the order of the length of the string you&#039;re looking for, instead of log2(n) of the number of strings. Strcmp no longer shows up on my profile, which makes me very happy.</description>
		<content:encoded><![CDATA[<p>I agree with your point about the maps not changing, although I went down a different path &#8211; I have a new version almost ready to post. I ended up using a Ternary Search Tree, as described here: </p>
<p><a href="http://www.cs.princeton.edu/~rs/strings/" rel="nofollow">http://www.cs.princeton.edu/~rs/strings/</a></p>
<p>It gets rid of string compares for lookup, so finding an attribute is really quick; search is on the order of the length of the string you&#8217;re looking for, instead of log2(n) of the number of strings. Strcmp no longer shows up on my profile, which makes me very happy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peirz</title>
		<link>http://meshula.net/wordpress/?p=174&#038;cpage=1#comment-6451</link>
		<dc:creator>peirz</dc:creator>
		<pubDate>Thu, 26 Jun 2008 14:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://meshula.net/wordpress/?p=174#comment-6451</guid>
		<description>Once the binding is done, the map will never change, so I&#039;d suggest a sorted vector instead. It&#039;s not a premature optimization, rather it&#039;s simplifying the code by making it explicit that once you&#039;ve got things set up, it&#039;s just a lookup from then on.  Although, [] is more readable than lower_bound and all that.  It also gets rid of the redundancy where the name is stored in the attribute _and_ in the map as a key.</description>
		<content:encoded><![CDATA[<p>Once the binding is done, the map will never change, so I&#8217;d suggest a sorted vector instead. It&#8217;s not a premature optimization, rather it&#8217;s simplifying the code by making it explicit that once you&#8217;ve got things set up, it&#8217;s just a lookup from then on.  Although, [] is more readable than lower_bound and all that.  It also gets rid of the redundancy where the name is stored in the attribute _and_ in the map as a key.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
