Comment #11 on issue 2307 by asmeurer: Duplicate methods: as_coeff_mul and as_coeff_Mul
http://code.google.com/p/sympy/issues/detail?id=2307

The answer is, it isn't comparable.  I just reran it in master and got:

In [1]: a = 3*Mul(*[Symbol('x%d' % i) for i in range(100)])

In [2]: %timeit a.as_coeff_mul()
100000 loops, best of 3: 3.12 us per loop

In [3]: %timeit a.as_coeff_Mul()
100000 loops, best of 3: 8.96 us per loop

So it doesn't seem to have slowed things down any. And by the way, in as_coeff_mul-remove with the args option set to True:

In [1]: a = 3*Mul(*[Symbol('x%d' % i) for i in range(100)])

In [2]: %timeit a.as_coeff_mul(args=True)
100000 loops, best of 3: 7.81 us per loop

So performance is not an issue here---the API is.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to