Skip to content
Snippets Groups Projects
Commit 5463ce13 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Revert to anychar in hat tries.

7-bit ASCII is not enough to cover corner cases and potentially
harmful qnames.

Change-Id: I83a5af63e7ab3d2ce87c7b5063e55f1a1a6c2e1e
parent b2fb92dc
No related merge requests found
......@@ -32,7 +32,7 @@ typedef void* value_t; /* User pointers as value. */
#define AHTABLE_INIT_SIZE 1024
#define TRIE_ZEROBUCKETS 0 /* Do not use hash buckets (pure trie). */
#define TRIE_BUCKET_SIZE 1536 /* Reasonably low for ordered search perf. */
#define TRIE_MAXCHAR 0x7f /* Use 7-bit ASCII alphabet. */
#define TRIE_MAXCHAR 0xff /* Use 7-bit ASCII alphabet. */
typedef struct hattrie_t_ hattrie_t;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment