27 Nov
2025
27 Nov
'25
11:19 a.m.
Florian Lorkowski wrote:
We were working on an algorithm that caches composite objects in GiNaC by their hash value. We will implement a system to handle hash collisions.
You don't need to "implement a system to handle hash collisions". You can use the hash tables defined in cln/src/base/hash/{cl_hash.h,cl_hash1.h,cl_hash2.h}. Or, if you prefer the C++ Standard Library, I'm sure it has something for that use-case as well. Bruno