From 6345042a457de84d0b4fdb0ffe8e21052479fdbc Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 16 Sep 2009 14:40:56 +0000 Subject: Lookup hashes are now static tables, ordered first-level by second character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources. --- mdoc_action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdoc_action.c') diff --git a/mdoc_action.c b/mdoc_action.c index dd8487ad..13267a87 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -617,7 +617,7 @@ post_bl_width(POST_ARGS) if (0 == strcmp(p, "Ds")) width = 6; - else if (MDOC_MAX == (tok = mdoc_hash_find(m->htab, p))) + else if (MDOC_MAX == (tok = mdoc_hash_find(p))) return(1); else if (0 == (width = mdoc_macro2len(tok))) return(mdoc_nwarn(m, n, ENOWIDTH)); -- cgit