mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
lib/compression: script to test 3 byte hash
Compression uses a 3 byte hash remember LZ77 matches in a 14-bit table. This script runs the hash over all 16M combinations, then again over all ASCII combinations, counting collisions to find hot-spots. If you think you have a better hash, you are probably right, but you should try it here -- alter h() -- before committing to it. This one is literally the first one I thought of. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
committed by
Joseph Sutton
parent
dadecede54
commit
7804570a37
@@ -116,6 +116,7 @@ EXCLUDE_USAGE = {
|
||||
'python/samba/tests/krb5/claims_tests.py',
|
||||
'python/samba/tests/krb5/lockout_tests.py',
|
||||
'python/samba/tests/krb5/group_tests.py',
|
||||
'lib/compression/tests/scripts/three-byte-hash',
|
||||
}
|
||||
|
||||
EXCLUDE_HELP = {
|
||||
|
||||
Reference in New Issue
Block a user