summaryrefslogtreecommitdiffstats
path: root/lib/buffer.h
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-06-22 15:06:49 +0200
committerGergely Nagy <algernon@balabit.hu>2012-06-22 15:06:49 +0200
commit88c48725d12663dd807e28d65871f8db4ac7273e (patch)
treed34485e9442e56de70c67860c3e5fdad076fe07f /lib/buffer.h
parent779645803fe70a389758b76ff01ba676b8a61999 (diff)
downloadlibumberlog-88c48725d12663dd807e28d65871f8db4ac7273e.tar.gz
libumberlog-88c48725d12663dd807e28d65871f8db4ac7273e.tar.xz
libumberlog-88c48725d12663dd807e28d65871f8db4ac7273e.zip
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 'lib/buffer.h')
0 files changed, 0 insertions, 0 deletions