On Friday, 5 July 2013 12:57:55 UTC-6, David Roe wrote: > > > > I collected this functionality in a decorator @unordered_parallel that >> lets you replace >> >> for i in iterator: >> yield f(i) >> >> by >> >> @unordered_parallel(iterator, number_of_chunks) >> def _(i): >> return f(i) >> for res in _: yield res >> >> (As a side note: I'm really happy with how the interface lets you >> parallelize your >> for loop while hardly changing its body.) >> >> Would there be any interest in an addition along these lines to the >> sage.parallel module? >> > > Sounds like a good addition to me. Is there documentation somewhere about > doing parallel computation with Sage? Features like this seem like they > could easily get lost.... > David > > I think this will be quite useful and should mentioned in the documentation of current @parallel (or perhaps added to it). It seems to me that overhead of @parallel is quite large and whenever I use it I need to rewrite the code to work on chunks.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.