Now Transaction DB use BaseDeltaIterator, but it needs compare base_iter key and delta_iter key on each Next()/Prev(), this waste CPU.
We can add delta iter to the (heap of) underlying MergingIterator of DBIter, thus improving performance -- delta iter is unlikely going to heap top.
Now Transaction DB use
BaseDeltaIterator, but it needs compare base_iter key and delta_iter key on each Next()/Prev(), this waste CPU.We can add delta iter to the (heap of) underlying MergingIterator of DBIter, thus improving performance -- delta iter is unlikely going to heap top.