<?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: First look at Cython</title>
	<atom:link href="http://www.mblondel.org/journal/2009/11/27/first-look-at-cython/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mblondel.org/journal/2009/11/27/first-look-at-cython/</link>
	<description>Machine Learning, Data Mining, Natural Language Processing…</description>
	<lastBuildDate>Mon, 02 Jan 2012 10:53:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Ian</title>
		<link>http://www.mblondel.org/journal/2009/11/27/first-look-at-cython/#comment-195960</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 30 Nov 2009 17:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mblondel.org/journal/?p=119#comment-195960</guid>
		<description>That&#039;s interesting. I tried Cython for a homework assignment where I was looping over and doing simple operations on a couple of arrays of 100,000 elements. Using just python and numpy it was horribly slow, taking about 5 seconds to compute.

I tried doing the C style syntax in the python with Cython and got about a 2x speedup when I statically typed my arrays and loop variables, and turned off boundary checking. That was still way too slow since this was part of an iterative method.

I simply rewrote the loop in C++ and it computed instantaneously, but I never got around to wrapping the loop and bringing it back to python. I think I&#039;m going to finish the attempt after some free time.</description>
		<content:encoded><![CDATA[<p>That&#8217;s interesting. I tried Cython for a homework assignment where I was looping over and doing simple operations on a couple of arrays of 100,000 elements. Using just python and numpy it was horribly slow, taking about 5 seconds to compute.</p>
<p>I tried doing the C style syntax in the python with Cython and got about a 2x speedup when I statically typed my arrays and loop variables, and turned off boundary checking. That was still way too slow since this was part of an iterative method.</p>
<p>I simply rewrote the loop in C++ and it computed instantaneously, but I never got around to wrapping the loop and bringing it back to python. I think I&#8217;m going to finish the attempt after some free time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

