From 41055d1c9a4615fe9664487e66ec7e9a81773428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Fri, 13 May 2022 19:17:00 +0200 Subject: [PATCH] chore: typo fix --- backend/lib/utils/KeyValueDeduplicationCache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/lib/utils/KeyValueDeduplicationCache.js b/backend/lib/utils/KeyValueDeduplicationCache.js index b571af976b..8d9f47202d 100644 --- a/backend/lib/utils/KeyValueDeduplicationCache.js +++ b/backend/lib/utils/KeyValueDeduplicationCache.js @@ -11,8 +11,8 @@ class KeyValueDeduplicationCache { * * Strings in JS are UTF-16 take up 2 byte per character, which ends up as 80 bytes for sha1 and 64 for md5 * Numbers in JS however will always just take up 8 bytes so instead of saving the hash in hex or base64, - * we take as much of the hashas a JS number can safely fit and store that. This enables us to greatly reduce - * the likelyhood of collisions without having to use more memory + * we take as much of the hashes a JS number can safely fit and store that. This enables us to greatly reduce + * the likelihood of collisions without having to use more memory * * As JS numbers are IEEE-754 doubles, we may safely use up to 2^52-1 without any precision loss * 0xfffffffffffff (13x f) is exactly that 2^52-1