You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because we have to check the type of the keys and values of the dictionary and convert all of them to Basic types. If you are re-using the dictionary, then you can create a DictBasic dictionary so that the type checks are not done repeatedly. If you are using the dictionary once, there's very little we can do.
When executing the symengine
subs
on just basic types a callback to the python interpreter is make. A minimal example:When profiling the expression (with cProfile + snakeviz) we get:
(the magenta block is the call back to python)
If the call back to the python interpreter can be avoided, the code is more efficient.
The text was updated successfully, but these errors were encountered: