From 78b16edb747834f1a9a41931a1adb7d7fe0fcbb0 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 1 Apr 2025 06:18:00 -0600 Subject: measurestack: Bypassing hash() has measureable speedup --- build-aux/measurestack/analyze.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux/measurestack') diff --git a/build-aux/measurestack/analyze.py b/build-aux/measurestack/analyze.py index 5b29841..8100813 100644 --- a/build-aux/measurestack/analyze.py +++ b/build-aux/measurestack/analyze.py @@ -62,7 +62,7 @@ class BaseName: return self._content < other._content def __hash__(self) -> int: - return hash(self._content) + return self._content.__hash__() def as_qname(self) -> "QName": return QName(self._content) @@ -106,7 +106,7 @@ class QName: return self._content < other._content def __hash__(self) -> int: - return hash(self._content) + return self._content.__hash__() def base(self) -> BaseName: if self._base is None: -- cgit v1.2.3-2-g168b