Skip to content
Snippets Groups Projects
Commit 8ac43530 authored by Arne Goedeke's avatar Arne Goedeke
Browse files

hashtable.c: do not rechain in lookup

Reordering the bucket list during lookup is very expensive. Removing it
makes cpp() about 10% faster on a file that only contains define and if
defined() statements.
Additionally, the const attribute on the hash table argument is correct now.
parent dd722b24
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment