Am 28.10.2011 21:51, schrieb Aaron Meurer:
What exactly concerns you by the way? Things like int(0.1) or even
ceil(0.1) are going to be very fast.
That exactly was what was concerning me.
If it's not an issue within the Python framework, I'm happy.
> Though I think the fact that it uses a cached sieve should keep the
> performance reasonable.
Ah, not if a generator.py function is called in a tight loop and the
parameter check happens on every call.
But I guess that will just contribute to general subroutine call
overhead, so won't register as killing the performance for anybody.
Anyway, this kind of overhead, if it ever becomes an issue, should be
optimized out by the Python machinery, not by the programmer :-)
I was just covering my bases. I wasn't sure how performance-sensitive
sympy is. It was just that the somewhat lengthy unit tests got me
thinking about performance.
Regards,
Jo
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.