diff options
author | Ran Benita <ran234@gmail.com> | 2012-10-16 16:05:33 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-10-16 21:10:04 +0200 |
commit | 5fff637e07d75b24f778210e7838ee9667810806 (patch) | |
tree | 8dfc30199ee6b31a187e05649f5672df563f8265 /test | |
parent | 3477d9e4480f4f2607d371345cc1c09bb8a35c78 (diff) | |
download | libxkbcommon-5fff637e07d75b24f778210e7838ee9667810806.tar.gz libxkbcommon-5fff637e07d75b24f778210e7838ee9667810806.tar.bz2 libxkbcommon-5fff637e07d75b24f778210e7838ee9667810806.zip |
makekeys: replace helper with python script and binary search
This removes the complicated and undocumented hash-table creation-helper
and replaces it with an autogenerated sorted array. The search uses simple
bsearch() now.
We also tried using gperf but it turned out to generate way to big
hashtables and when reducing the size it isn't really faster than
bsearch() anymore.
There are no users complaining about the speed of keysym lookups and we
have no benchmarks that tell that we are horribly slow. Hence, we can
safely use the simpler approach and drop all that old code.
Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions