projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compacter trie, reduce the number of allocations.
[apps/pfixtools.git]
/
common
/
tst-trie.c
diff --git
a/common/tst-trie.c
b/common/tst-trie.c
index
b4b064e
..
d2ccc14
100644
(file)
--- a/
common/tst-trie.c
+++ b/
common/tst-trie.c
@@
-90,7
+90,7
@@
static trie_t *create_trie_from_file(const char *file)
p = eol - BUFSIZ;
}
int i = 0;
p = eol - BUFSIZ;
}
int i = 0;
-#if
0
+#if
1
for (const char *s = eol - 1 ; s >= p ; --s) {
line[i++] = ascii_tolower(*s);
}
for (const char *s = eol - 1 ; s >= p ; --s) {
line[i++] = ascii_tolower(*s);
}