pearu / sympycore

Automatically exported from code.google.com/p/sympycore
Other
11 stars 1 forks source link

Speed up sympify #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Inside sympify an AST tree is generated that currently
has the following behavior:
  sympify('a+b+c') -> Add(Add(a,b), c)

A speed up will be obtained if sympify would
implement the following:
  sympify('a+b+c') -> Add(a, b, c)

This could mean that
  sympify('a+b+c')
could be faster than
  a+b+c
(that basically is Add(Add(a,b), c))

Original issue reported on code.google.com by pearu.peterson on 29 Dec 2007 at 6:56