Am 02.04.2015 um 18:46 schrieb James Crist:
Performance:
Using symbols() in all contexts might have performance ramifications,
creating new Symbol() objects means more memory pressure than reusing
precreated symbols from sympy.abc (which happen 521 times in SymPy
itself, hopefully just in test code).
We cache symbol creation, so Symbol('a') is Symbol('a') is True. This means
no additional memory is consumed.
Ah, I wasn't aware of that.
What happens with assumptions - do these persist? (I'm a bit worried
about tests here.)
--
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/551D7457.6000306%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.