[Numpy-discussion] Question about Optimization (Inline and Pyrex)

Sebastian Haase haase at msg.ucsf.edu
Wed Apr 18 00:32:15 EDT 2007


Hi Anne,
I'm just starting to look into your code (sound very interesting -
should probably be put onto the wiki)
 -- quick note:
you are mixing tabs and spaces  :-(
what editor are you using !?

-Sebastian



On 4/17/07, Anne Archibald <peridot.faceted at gmail.com> wrote:
> On 17/04/07, Lou Pecora <lou_boog2000 at yahoo.com> wrote:
> > I get what you are saying, but I'm not even at the
> > Stupidly Easy Parallel level, yet.  Eventually.
>
> Well, it's hardly wonderful, but I wrote a little package to make idioms like:
>
> d = {}
> def work(f):
>    d[f] = sum(exp(2.j*pi*f*times))
> foreach(work,freqs,threads=3)
>
> work fine.
>
> Of course you need to make sure your threads don't accidentally
> trample all over each other, but otherwise it's an easy way to get a
> factor-of-two speedup.
>
> Anne
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>
>



More information about the NumPy-Discussion mailing list