tezc/sc
View on GitHub ↗ ★ 2,577 C
Common libraries and data structures for C.
7 mentions on Hacker News by 4 people: 2 stories, 5 comments · first 2021-02-12 · latest 2023-06-13
20082026
-
…implementations for reference: - https://github.com/attractivechaos/klib/blob/master/khash.h - https://github.com/tezc/sc/tree/master/map - https://github.com/troydhanson/uthash
comment by jmacjmac · 2023-06-13 · in A simple hash table in C -
…the others, makes it harder and more annoying to implement more complicated data structures. [1]: https://github.com/tezc/sc/blob/master/array/array_test.c#L3...
comment by unwind · 2022-05-17 · in Common libraries and data structures for C -
https://github.com/tezc/sc/tree/master/map For those who are interested in faster hashmaps, I tried bunch of hashmaps and this one performs better than others. This is for C. Maybe C++ has better hashmaps.
comment by tirrex · 2022-03-26 · in Uthash – C macros for hash tables and more -
For a vector alternative, I find this one easy to read and use : https://github.com/tezc/sc/tree/master/array It is just an array of your type, e.g int *numbers, so you have type info in debugger as well.
comment by tirrex · 2021-04-23 · in Beej’s Guide to C Programming [pdf] -
…it may be a simple addition to your map. Check out these repos for the example implementation: (C) https://github.com/tezc/sc/tree/master/map (C++) https://github.com/rigtorp/HashMap
comment by tirrex · 2021-03-26 · in How to implement a hash table in C