mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-14 07:44:04 +02:00
Using a sha256 hash is major overkill for the purposes of finding a short hash of a string. This change switches _short_hash to use Python's built-in hash() function (used for hashing in dicts and sets). which works just fine for this, and is much faster. In addition, since context IDs are length-limited, use base-85 encoding to pack as many bits of the hash and index into the context as possible. |
||
|---|---|---|
| .. | ||
| adaptive_lighting | ||