Skip to content
Snippets Groups Projects
  • Arne Goedeke's avatar
    8ac43530
    hashtable.c: do not rechain in lookup · 8ac43530
    Arne Goedeke authored
    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.
    8ac43530
    History
    hashtable.c: do not rechain in lookup
    Arne Goedeke authored
    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.