summaryrefslogtreecommitdiff
path: root/toxcore/ping.h
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-11-17 01:04:49 +0100
committerCoren[m] <Break@Ocean>2013-11-17 01:05:00 +0100
commitb132c92b3ae3aeee293a4e815336cac76c7cfe69 (patch)
tree1878864ea5a27d571ac758bb5ad2875f0b9460a6 /toxcore/ping.h
parent0d8329b3a9b16cd6089810e61ce958fde00046b8 (diff)
Assoc's array is now allocated dynamically and per default much smaller (320 entries).
id_hash() was not at all working as expected for very small bucket size (when (size / 4) was zero). Simplified to be trivially correct. Also added a used flag on adding an entry, which is set by callers if they have that association in active use. Those get priority over unused entries on collision. Fleshed out test to be at least elementary useful. Each group chat now uses an own, small assoc (80 entries).
Diffstat (limited to 'toxcore/ping.h')
0 files changed, 0 insertions, 0 deletions