From d2976625b3d6d0ac8bba2d913647dda67f316ee1 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Thu, 16 Mar 2017 16:26:10 +0100 Subject: [PATCH] world: remove redundant hashing This is probably a leftover from the memcached thing. There is no need to hash a key to be used for hashmap access, as the hashmap itself hashes it already, and probably with a hash more appropriate for the situation. --- overviewer_core/world.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 62717ed..49ac976 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -17,7 +17,6 @@ import functools import os import os.path import logging -import hashlib import time import random import re @@ -726,8 +725,6 @@ class CachedRegionSet(RegionSetWrapper): logging.debug("Initializing a cache with key '%s'", s) - s = hashlib.md5(s).hexdigest() - self.key = s def get_chunk(self, x, z):