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 PR changes ParamResolvers to only use string keys.
- Previously, ParamResolver keys could be strings or symbols.
- If a symbol is detected, the ParamResolver will remake the dictionary
using only strings.
- This simplifies the logic and improves performance since sympy Symbols
can be slower to create and hash.
Performance implications:
- Creation speed is unchanged unless you have symbols as keys, then
creation takes about twice as long. (For 1000 parameters, this is a
change from about 0.6ms to 1.3ms).
- Lookup speed is now about ~120-130ns
- Before it was: -- ~200ns for string lookup with string keys
-- ~250ns for symbol lookup with string keys
-- ~850ns for string lookup with symbol keys
-- ~350ns for symbol lookup with symbol keys
0 commit comments