attractivechaos / klib

A standalone and lightweight C library
http://attractivechaos.github.io/klib/
MIT License
4.18k stars 556 forks source link

Easily copy/clone a khash hash table #155

Open jhelsas opened 3 years ago

jhelsas commented 3 years ago

Dear mantainer(s) of klib,

First, I would like to thank for providing such convenient library overall. I am using the khash header to implement a fast hash table in my code, to accelerate fast neighbour search. I am paralelizing a section of this code using openMP, and it would be incredibly convenient to be able to copy a pair of hash tables I have created in the serial part of the code into private variables of each thread, but I couldn't find any way to do so. Do you have any suggestions on how to approach this issue?

best regards,