diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-01 06:18:00 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-01 06:18:45 -0600 |
commit | 78b16edb747834f1a9a41931a1adb7d7fe0fcbb0 (patch) | |
tree | 93c33479274e134547dd433da8841c3bcee821c7 /build-aux | |
parent | 8eec957275cb3566b8371774a9a1e3e09f43fcde (diff) |
measurestack: Bypassing hash() has measureable speedup
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/measurestack/analyze.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |