<?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: Code tuning techniques</title>
	<atom:link href="http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/</link>
	<description>avoid mickey mouse programming</description>
	<lastBuildDate>Tue, 05 Jul 2011 03:54:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Giorgio Natili</title>
		<link>http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/comment-page-1/#comment-4304</link>
		<dc:creator>Giorgio Natili</dc:creator>
		<pubDate>Mon, 04 Jan 2010 01:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/#comment-4304</guid>
		<description>Hi Alessandro,

I agree with you and thanks for the comment, I believe it can help a lot this small blog...</description>
		<content:encoded><![CDATA[<p>Hi Alessandro,</p>
<p>I agree with you and thanks for the comment, I believe it can help a lot this small blog&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Bianco</title>
		<link>http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/comment-page-1/#comment-4232</link>
		<dc:creator>Alessandro Bianco</dc:creator>
		<pubDate>Thu, 17 Dec 2009 09:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mxml.it/index.php/2009/10/04/code-tuning-techniques/#comment-4232</guid>
		<description>it&#039;s worth to say that the bit operations (like value &gt;&gt; 1) are meant to work on integers and return s only integes.
So if you try to (3 &gt;&gt; 1) you will get 1 as a result.
Also they do a &quot;awful&quot; (just because it can be unexpected) job at rounding for negative numbers. (-3 &gt;&gt; 1 == 2).
For the same reason using int(-1.5) in place of the floor() method will give you wrong results.

In my opinion, you should be really confident about what kind of data you are working with and what kind of results you need before switching to bit operations.</description>
		<content:encoded><![CDATA[<p>it&#8217;s worth to say that the bit operations (like value &gt;&gt; 1) are meant to work on integers and return s only integes.<br />
So if you try to (3 &gt;&gt; 1) you will get 1 as a result.<br />
Also they do a &#8220;awful&#8221; (just because it can be unexpected) job at rounding for negative numbers. (-3 &gt;&gt; 1 == 2).<br />
For the same reason using int(-1.5) in place of the floor() method will give you wrong results.</p>
<p>In my opinion, you should be really confident about what kind of data you are working with and what kind of results you need before switching to bit operations.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

