Use BTreeMap::range to avoid iterating over unnecessary versions
#10266
+48
−15
BTreeMap::range to avoid iterating over unnecessary versions
#10266