Apr-13-2019, 08:00 AM
(This post was last modified: Apr-13-2019, 08:02 AM by Gribouillis.)
Quote:I assume this costs some amount of overhead.This kind of statements need to be measured with a tool such as the profile module before you do anything. At first sight it seems to me that the calls to
zlib.compress()
and sha256().hexdigest()
may cost much much more than the dictionary lookup.