From 1e32e4bdae2e3fb3d1bf68314e146052a3c65561 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 28 Oct 2015 11:21:55 +0100 Subject: Improved SigMap performance --- kernel/hashlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/hashlib.h') diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 83c112f3c..1f022e473 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -985,6 +985,11 @@ public: parents[i] = -1; } + int lookup(const K &a) const + { + return ifind((*this)(a)); + } + const K &find(const K &a) const { return (*this)[ifind((*this)(a))]; -- cgit v1.2.3