I really want good reviews from Sean (threading guru) and Andrei (general design guru) before this gets into Phobos.  Otherwise I feel like scientific computing people (like us) might be the only people that find this module to be any good.  Also, no matter what, I&#39;m probably going to wait until after the next release to check it in, because I want to test it thoroughly on 64, and I can&#39;t do that w/o a 64 compiler.<br>
<br><div class="gmail_quote">On Tue, Aug 31, 2010 at 9:34 AM, Lars Tandle Kyllingstad <span dir="ltr">&lt;<a href="mailto:lars@kyllingen.net">lars@kyllingen.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I ran my calculation on an 8-core at work, by the way, and it was very enjoyable to see a manyfold speed-up just by changing a few lines of code.<br><br>We should definitely get this into Phobos.<br><br>-Lars<br><br>----- Reply message -----<br>
From: &quot;David Simcha&quot; &lt;<a href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a>&gt;<br>Date: Tue, Aug 31, 2010 14:13<br>Subject: [phobos] std.parallelism:  Request for review/comment<br>To: &quot;Discuss the phobos library for D&quot; &lt;<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a>&gt;<div>
<div></div><div class="h5"><br><br>  On 8/31/2010 6:22 AM, Lars Tandle Kyllingstad wrote:<br>&gt; Point (3) is pretty cool.  I just used your module for my current<br>&gt; project at work, and the ability to get the index made the code a lot<br>
&gt; nicer.<br>&gt;<br>&gt; Another question:  Why have you chosen the default number of work units<br>&gt; to be just two units per thread?  In my experience, it&#39;s not uncommon<br>&gt; that calculations are harder on some parts of the range than others, and<br>
&gt; then there is a risk of some cores running out of work to do.  I&#39;d think<br>&gt; that having more work units, 3-4 per thread, say, would allow for better<br>&gt; distribution of work between cores.<br>&gt;<br>&gt; -Lars<br>
<br>Good point.  I should probably change this, as the more I think about it <br>the more I realize that I never use the default for the reason you <br>mention.  It seemed like a good idea in iteration 1, and then I just <br>
never reconsidered.<br></div></div><div><div></div><div class="h5">_______________________________________________<br>phobos mailing list<br><a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br><br><br></div></div><br>_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br></blockquote></div><br>