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 -- 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.