loopy
loopy copied to clipboard
Switch immutables.Map and pyrsistent.PMap to constantdict
This currently a proof-of-concept.
Edit: I removed the previous performance results, they were likely caused by some kind of caching of kernels.
TODOs:
- [x] ~~add
mutatesupport to constantdict (and perhaps immutabledict)~~ (or change the singlemutatecall) - [x] Change
from constantdict import constantdict as Map=>from constantdict import constantdict - [ ] ~~Perhaps remove
sortedcalls (likely in a separate PR)~~ - [x] This needs a new
pytoolsrelease - [ ] Benchmark this
Please squash
This is ready for a first look @inducer. It will need a new pytools release for the CI.
Please don't remove the sorted() calls, FWIW.