• S
    remove struct elem entirely from hsearch.c · 141d3b5c
    sin 提交于
    There are two changes here, both of which make sense to be done in a
    single patch:
    
    - Remove hash from struct elem and compute it at runtime wherever
      necessary.
    - Eliminate struct elem and use ENTRY directly.
    
    As a result we cut down on the memory usage as each element in the
    hash table now contains only an ENTRY not an ENTRY + size_t for the
    hash. The downside is that the hash needs to be computed at runtime.
    141d3b5c
hsearch.c 3.0 KB