mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
fix: replace O(n²) path dedup with O(1) hash set lookup
This commit is contained in:
@@ -111,6 +111,12 @@ public:
|
||||
bool
|
||||
operator!=(STPathElement const& t) const;
|
||||
|
||||
[[nodiscard]] std::size_t
|
||||
hash() const noexcept
|
||||
{
|
||||
return hash_value_;
|
||||
}
|
||||
|
||||
private:
|
||||
static std::size_t
|
||||
getHash(STPathElement const& element);
|
||||
|
||||
Reference in New Issue
Block a user