Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another perfectly good solution is to treat a C hashtable as a sort of acceleration index. That C hashtable then, rather than holding pointers simply holds `hashkey -> i` where i is the position into a typed array.

I.e. your data structure is like this:

  generic_hashtable Hash; // (hash->int)
  Foo *values; // where my typed data is.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: