Our homegrown switchio.models.Events data structure for storing event streams looks a lot like the stdlib's collections.ChainMap. The only major difference seems to be that Events supports slicing which should be the same as slicing ChainMap.maps?
I propose seeing if we can just move to ChainMap (at least a subtype of it) since it accomplishes an additional goal I had to make Events a subtype of MutableMapping.
Our homegrown
switchio.models.Events
data structure for storing event streams looks a lot like the stdlib'scollections.ChainMap
. The only major difference seems to be thatEvents
supports slicing which should be the same as slicingChainMap.maps
?I propose seeing if we can just move to
ChainMap
(at least a subtype of it) since it accomplishes an additional goal I had to makeEvents
a subtype ofMutableMapping
.