From af0800fbdda9da37361887c3f540167a9f5cb111 Mon Sep 17 00:00:00 2001 From: janwas Date: Fri, 18 Mar 2005 21:57:07 +0000 Subject: [PATCH] uses 32 bit hash instead of 64 - faster (clears up long standing TODO) This was SVN commit r2006. --- source/ps/CStr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ps/CStr.cpp b/source/ps/CStr.cpp index 7b4b15b9a2..2434e97337 100755 --- a/source/ps/CStr.cpp +++ b/source/ps/CStr.cpp @@ -356,9 +356,9 @@ CStr::operator const TCHAR*() const size_t CStr::GetHashCode() const { - return (size_t)fnv_hash64(data(), length()); - // janwas asks: do we care about the hash being 64 bits? - // it is truncated here on 32-bit systems; why go 64 bit at all? + return (size_t)fnv_hash(data(), length()); + // janwas 2005-03-18: now use 32-bit version; 64 is slower and + // the result was truncated down to 32 anyway. } #ifdef _UNICODE