makekeys: replace helper with python script and binary search
authorRan Benita <ran234@gmail.com>
Tue, 16 Oct 2012 14:05:33 +0000 (16:05 +0200)
committerRan Benita <ran234@gmail.com>
Tue, 16 Oct 2012 19:10:04 +0000 (21:10 +0200)
commit5fff637e07d75b24f778210e7838ee9667810806
tree8dfc30199ee6b31a187e05649f5672df563f8265
parent3477d9e4480f4f2607d371345cc1c09bb8a35c78
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>
Makefile.am
configure.ac
makekeys.py [new file with mode: 0644]
makekeys/.gitignore [deleted file]
makekeys/Makefile.am [deleted file]
makekeys/makekeys.c [deleted file]
src/keysym.c