epatrizio / cds

Data structures in C language
The Unlicense
0 stars 0 forks source link

Hash function #13

Open epatrizio opened 2 years ago

epatrizio commented 2 years ago

Currently, in hash set, hash map and graph components, the hash function is passed as an argument of each function (by function pointer). So, hash function must be defined before the use of these components (Example: see our tests). it's definitely very heavy! I realized that during graph coding. Refactoring ? How (best practice) ?