Commit Graph

5 Commits (ef509eb7967addbc362998df58df55c1cb5b8250)

Author SHA1 Message Date
nirenjan ef509eb796 Add new lookup engine for UTF-8 strings
This is on a separate branch because during performance testing, this
approach, using a fixed switch statement to determine the mapped entry,
performs much worse than the original lookup table method.

On Ubuntu 16.04, with gcc 5.4 and clang 3.8, the switch case took about
25% more time with clang, but almost 70% more time with gcc compared to
the lookup table.
2017-01-11 08:28:00 -08:00
nirenjan 8892b3ef7e util: Remove generated file from distribution tarball
util_char_map.c is generated at compile time by the Python script
x52_char_map_gen.py from the configuration x52_char_map.cfg. However,
because it was listed in libx52util_la_SOURCES, it was getting added to
the distribution.

In addition, removing it from the distribution caused `make distcheck`
to fail, since the generation script was called relative to the current
directory, instead of relative to `$(srcdir)`. This commit also fixes
that issue.
2016-12-29 14:01:38 -08:00
nirenjan ea2927859b Fix includedir location for headers 2016-05-16 22:15:19 -07:00
nirenjan bc9001705d Convert character map generator to Python script
The conversion makes it simpler to allow cross-compilation, since we
should be using the host Python interpreter to build the generated
character map, rather than relying on the automake infrastructure.
2016-05-05 09:18:05 -07:00
nirenjan c87e785a18 Restructure code layout
Copy files to individual folders. This makes it cleaner to add new
functionality in the future.
2015-12-08 21:46:42 -08:00