Files
mesa/src/util
Anthony Pesch 1496cc92f6 util/hash_table: added hash functions for integer types
A few hash_table users roll their own integer hash functions which
call _mesa_hash_data to perform the hashing which ultimately calls
into XXH32 with a dynamic key length. When using small keys with a
constant size the hash rate can be greatly improved by inlining
XXH32 and providing it a constant key length, see:
https://fastcompression.blogspot.com/2018/03/xxhash-for-small-keys-impressive-power.html

Additionally, this patch removes calls to _mesa_key_hash_string and
makes them instead call _mesa_has_string directly, matching the new
integer hash functions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3475>
2020-01-23 17:06:57 +00:00
..
2019-10-10 16:33:04 -07:00
2019-08-08 22:02:54 +01:00
2018-10-10 13:13:12 -05:00
2019-09-19 19:56:22 +00:00
2019-03-11 13:13:52 -07:00
2019-03-11 13:13:52 -07:00
2019-08-15 20:23:44 +02:00
2019-08-02 18:38:52 +01:00
2019-10-28 11:24:39 +00:00
2019-09-06 00:45:11 +00:00
2017-11-09 11:57:21 +01:00
2019-05-31 19:14:30 +02:00
2019-10-09 12:55:15 -07:00
2019-03-14 22:41:08 +00:00
2018-11-27 15:44:02 -05:00
2019-10-28 11:24:38 +00:00
2019-08-31 13:26:10 -07:00
2020-01-23 17:06:57 +00:00