On Tuesday, April 29, 2014 3:13:47 AM UTC-4, Joachim Durchholz wrote: > > Am 25.04.2014 18:13, schrieb Alan Bromborsky: > > Has anyone had any experience in using parallel python with sympy. It > > seems to me that there are probably a lot of loops that have independent > > operations. > > I'm unsure whether it's possible. > > Multithreading becomes problematic as soon as you have shared updatable > data structures. > > Parallelizing stuff within a SymPy computation would require explicitly > forking off threads in the various algorithms; I do not think SymPy does > that. >
Python does not support running threads in parallel because of the GIL. It can only run processes in parallel, which adds a large overhead, because memory cannot be shared. This means that all data shared between processes has to be serialized (usually using pickle). I don't think it is feasible to improve sympy's performance by parallelizing it without escaping to languages that support native multithreading. Vinzent -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/c730c519-e183-4e0c-9cec-d0c528c3bf70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
