<?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: Haskell Performance: Array Creation</title>
	<atom:link href="http://www.brool.com/index.php/haskell-performance-array-creation/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brool.com/index.php/haskell-performance-array-creation</link>
	<description>brool \brool\ (n.) : a low roar; a deep murmur or humming</description>
	<lastBuildDate>Wed, 16 Nov 2011 04:35:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: tim</title>
		<link>http://www.brool.com/index.php/haskell-performance-array-creation/comment-page-1#comment-74362</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Tue, 31 Mar 2009 05:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.brool.com/?p=274#comment-74362</guid>
		<description>@an:  You&#039;re absolutely right -- even a standard -ccopt -O2 becomes faster when you zero out the array in a for loop.  I&#039;m amazed at the difference between that and Array.fill.  Updated the original article, thanks for the info!</description>
		<content:encoded><![CDATA[<p>@an:  You&#8217;re absolutely right &#8212; even a standard -ccopt -O2 becomes faster when you zero out the array in a for loop.  I&#8217;m amazed at the difference between that and Array.fill.  Updated the original article, thanks for the info!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: an</title>
		<link>http://www.brool.com/index.php/haskell-performance-array-creation/comment-page-1#comment-74323</link>
		<dc:creator>an</dc:creator>
		<pubDate>Mon, 30 Mar 2009 19:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brool.com/?p=274#comment-74323</guid>
		<description>For what is worth, OCaml is faster than the fourth Haskell version
if you remember to compile with -unsafe -nodynlink -inline 100, use a
pre-allocated array and zero it out for each
line (like in Haskell), with  for i = 0 to 255 do freq.(i) &lt;- 0 done. It doesn&#039;t take hours to
get there ;)</description>
		<content:encoded><![CDATA[<p>For what is worth, OCaml is faster than the fourth Haskell version<br />
if you remember to compile with -unsafe -nodynlink -inline 100, use a<br />
pre-allocated array and zero it out for each<br />
line (like in Haskell), with  for i = 0 to 255 do freq.(i) &lt;- 0 done. It doesn&#8217;t take hours to<br />
get there ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tim</title>
		<link>http://www.brool.com/index.php/haskell-performance-array-creation/comment-page-1#comment-74318</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Mon, 30 Mar 2009 17:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.brool.com/?p=274#comment-74318</guid>
		<description>@dons:  Well, I use a STUArray in the innermost loop...  it converts to a UArray on return but from what I can tell in the docs this should be an in-place modification, no copy necessary.</description>
		<content:encoded><![CDATA[<p>@dons:  Well, I use a STUArray in the innermost loop&#8230;  it converts to a UArray on return but from what I can tell in the docs this should be an in-place modification, no copy necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dons</title>
		<link>http://www.brool.com/index.php/haskell-performance-array-creation/comment-page-1#comment-74281</link>
		<dc:creator>dons</dc:creator>
		<pubDate>Mon, 30 Mar 2009 06:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.brool.com/?p=274#comment-74281</guid>
		<description>Did you consider just using a mutable array (e.g. STUArray) ?
These are the primary array structure with identical behaviour/representation to what you&#039;d use in an imperative language. They should have identical performance.</description>
		<content:encoded><![CDATA[<p>Did you consider just using a mutable array (e.g. STUArray) ?<br />
These are the primary array structure with identical behaviour/representation to what you&#8217;d use in an imperative language. They should have identical performance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

