Closed joelberkeley closed 4 months ago
mergeLeft
has been removed in #369, so it uses SortedMap
about as efficiently as it can. Moving to a linear mutable array may be fairly trivial
note List
will do fine for building the graph. We can just reverse
once in eval
/run
. List
won't be good for the XlaOp
cache though due to O(n) indexing
SortedMap
has O(log n) insertion, and who knows whatmergeLeft
has. Find something suitable. We may need to rethink the algo for building the graph.Also consider
ST
for escapable in-place updates