summaryrefslogtreecommitdiffhomepage
path: root/examples/benchmark.c
AgeCommit message (Collapse)Author
2020-07-14Redefined declare_CHash() interface, reverted back to original. ↵Tyge Løvset
declare_CHash(tag, Key, Value, ...). To define sets, use declare_CHash_set(tag, Key, ...); with only two params, you also may use: declare_CHash(tag, Key). Also added method: at, which works like c++ map[key] operator: inserts a new key if not existing (with given value 0), else return existing. Useful for e.g: ++chash_ii_at(&map, key, 0)->value;
2020-06-24Simplified maxload and shrinklimit.Tylo
2020-06-24Removed Mersenne Twister and xoroshiro functions. Added PGC32. Refactored ↵Tylo
carray.
2020-06-22Restructure declare_CHash arguments (again)Tylo
Removed forced inlining. (-> regular inline)
2020-06-22Updated CArray to support destructors, and added underscore before used ↵Tylo
defined tag - for consistency with the other containers. Changed map/set type-tag for CHash to upper case MAP/SET. Makes it clearer it is a tag and not a type or variable. Added complex example to README.md demonstrating capability of nested containers, using custom destructors.
2020-06-22Update benchmark.cTyge Løvset
2020-06-21Moved examples to examples folder.Tylo