<?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: strange thing in python</title>
	<atom:link href="http://ankurs.com/2010/02/strange-thing-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://ankurs.com/2010/02/strange-thing-in-python/</link>
	<description>01110100110101010101011101100010</description>
	<lastBuildDate>Fri, 10 Feb 2012 10:18:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Noufal Ibrahim</title>
		<link>http://ankurs.com/2010/02/strange-thing-in-python/comment-page-1/#comment-1091</link>
		<dc:creator>Noufal Ibrahim</dc:creator>
		<pubDate>Mon, 12 Jul 2010 10:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://ankurs.com/?p=599#comment-1091</guid>
		<description>When you call a constructor, a function call should take place. This introduces an overhead which is not there when you use a literal. So, your observation that the literal is faster is correct and here&#039;s some data to back it. 

noufal@sanitarium% python /usr/lib/python2.6/timeit.py &quot;x={}&quot;
10000000 loops, best of 3: 0.0477 usec per loop
noufal@sanitarium% python /usr/lib/python2.6/timeit.py &quot;x=dict()&quot;
10000000 loops, best of 3: 0.179 usec per loop
</description>
		<content:encoded><![CDATA[<p>When you call a constructor, a function call should take place. This introduces an overhead which is not there when you use a literal. So, your observation that the literal is faster is correct and here&#8217;s some data to back it. </p>
<p>noufal@sanitarium% python /usr/lib/python2.6/timeit.py &#8220;x={}&#8221;<br />
10000000 loops, best of 3: 0.0477 usec per loop<br />
noufal@sanitarium% python /usr/lib/python2.6/timeit.py &#8220;x=dict()&#8221;<br />
10000000 loops, best of 3: 0.179 usec per loop</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur Shrivastava</title>
		<link>http://ankurs.com/2010/02/strange-thing-in-python/comment-page-1/#comment-1021</link>
		<dc:creator>Ankur Shrivastava</dc:creator>
		<pubDate>Thu, 11 Mar 2010 18:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://ankurs.com/?p=599#comment-1021</guid>
		<description>the problem is using {} is more efficient then using the constructor dict(), see the number of lines disassembled 15 for function with {} and 21 for function with dict()</description>
		<content:encoded><![CDATA[<p>the problem is using {} is more efficient then using the constructor dict(), see the number of lines disassembled 15 for function with {} and 21 for function with dict()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shubhendra</title>
		<link>http://ankurs.com/2010/02/strange-thing-in-python/comment-page-1/#comment-999</link>
		<dc:creator>Shubhendra</dc:creator>
		<pubDate>Tue, 16 Feb 2010 04:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://ankurs.com/?p=599#comment-999</guid>
		<description>I am not able to figure out what difference you are seeing over here please elaborate a little more?</description>
		<content:encoded><![CDATA[<p>I am not able to figure out what difference you are seeing over here please elaborate a little more?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

