On 3 Nov., 20:08, Maarten Derickx <m.derickx.stud...@gmail.com> wrote: > I already wrote some framework wich does this for my personal use. It isn't > up to sage library code quality yet but I can send it to you or upload it > to trac if you make a ticket.
One could write some decorator for functions (implementing different strategies / algorithms) that have the same signature. Note that trying different algorithms at the same time is not necessarily faster, since a process can significantly impact the performance of others due to cache and memory usage (which of course is in addition usually very specific to the actual machine or processor). For some problems, one would rather use heuristics to choose which algorithm to apply. Whether running separate processes is worth of course also depends on how much data has to be exchanged, i.e. the size of the arguments and that of the result(s), and whether (at least some of) the data passed would normally get modified in-place, i.e., whether it could be shared (read-only) among forked subprocesses. -leif -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org