troydhanson / uthash

C macros for hash tables and more
Other
4.18k stars 926 forks source link

Remove hashing in HASH_FIND when head is null #171

Closed huansong closed 5 years ago

huansong commented 5 years ago

The hashing part in HASH_FIND is not needed when the table does not exist. This mainly helps reduce the costly calculation of HASH_VALUE for certain cases. We found and fixed this issue for https://github.com/pmodels/mpich.