diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-06-22 15:06:49 +0200 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-06-22 15:06:49 +0200 |
| commit | 88c48725d12663dd807e28d65871f8db4ac7273e (patch) | |
| tree | d34485e9442e56de70c67860c3e5fdad076fe07f /data | |
| parent | 779645803fe70a389758b76ff01ba676b8a61999 (diff) | |
Use a static exception map
* Make the map static, read-only and preinitialized, to avoid
thread-safety problems.
* Invert the map, making it non-zero for exceptional characters
(so that non-exceptional characters don't need to be mentioned)
* Tighten the set of exceptional characters, so that most of ASCII
goes through the fast path.
This increases the speed of test_perf_* by 7.7-20.6%.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions
