<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>t+1 - Latest Comments in Python&amp;#8217;s hash lookup is insanely good</title><link>http://tplus1.disqus.com/</link><description></description><atom:link href="http://tplus1.disqus.com/python8217s_hash_lookup_is_insanely_good/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 15 Nov 2009 00:24:26 -0000</lastBuildDate><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-23114645</link><description>&lt;p&gt;The lookup is often O(1) but the function that hashes a string so it can be looked up is usually not O(1) and will change depending on how long the string is.&lt;/p&gt;

&lt;p&gt;Also, collisions are possible in a hash table and in those cases it will not be O(1) to look those items up.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Name</dc:creator><pubDate>Sun, 15 Nov 2009 00:24:26 -0000</pubDate></item><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-21698941</link><description>&lt;p&gt;O(1) is a constant amount of time.  In the toy hash tables I built in&lt;br&gt;school, the hashing code took a significant amount of time, even if it&lt;br&gt;was a fixed amount of time, regardless of the number of elements in my&lt;br&gt;hash table.&lt;/p&gt;

&lt;p&gt;What surprised me with python is how small that time really is.  I&lt;br&gt;wasn't able to separate the cost of hashing an object from a simple&lt;br&gt;string comparison.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Mon, 02 Nov 2009 16:05:08 -0000</pubDate></item><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-21696921</link><description>&lt;p&gt;Isn't hash lookup supposed to be an O(1) operation?  So why is this so surprising?  &lt;/p&gt;

&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Hash_table" rel="nofollow"&gt;http://en.wikipedia.org/wiki/H...&lt;/a&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 02 Nov 2009 15:30:05 -0000</pubDate></item><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-12015160</link><description>&lt;p&gt;And hash tables and programming in general lol&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CSMajor</dc:creator><pubDate>Wed, 01 Jul 2009 21:54:40 -0000</pubDate></item><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-7995517</link><description>&lt;p&gt;I wish I knew enough about hardware to understand that stuff :)&lt;/p&gt;

&lt;p&gt;Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Wed, 08 Apr 2009 22:59:20 -0000</pubDate></item><item><title>Re: Python&amp;#8217;s hash lookup is insanely good</title><link>http://blog.tplus1.com/index.php/2008/03/17/pythons-hash-lookup-is-insanely-good/#comment-7995417</link><description>&lt;p&gt;Not to take away from Python in anyway here but I'd expect the reason you see such amazing performance here has to do with the magic of your CPU cache...  none the less it is still impressive !&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NdJ</dc:creator><pubDate>Wed, 08 Apr 2009 22:54:18 -0000</pubDate></item></channel></rss>
