loopy icon indicating copy to clipboard operation
loopy copied to clipboard

Switch immutables.Map and pyrsistent.PMap to constantdict

Open matthiasdiener opened this issue 4 months ago • 2 comments

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 mutate support to constantdict (and perhaps immutabledict)~~ (or change the single mutate call)
  • [x] Change from constantdict import constantdict as Map => from constantdict import constantdict
  • [ ] ~~Perhaps remove sorted calls (likely in a separate PR)~~
  • [x] This needs a new pytools release
  • [ ] Benchmark this

Please squash

matthiasdiener avatar Mar 06 '24 17:03 matthiasdiener