Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有任何方法可以以相反的顺序访问存储在 MapDB BTreeMap 中的条目。我知道我可以使用 descendingMap() 但它非常慢并且涉及大量 CPU 操作。还有其他更快的方法吗?键值对是非原始 Java 类型。
得到 MapDB 的创建者 Jan Kotek 的以下回复,
BTreeMap.descendingMap() 迭代性能存在漏洞。它将在 MapDB 2 中修复。