bioturing / hera-t

Hera-T, a fast and accurate tool for estimating gene abundances in single cell data generated by the 10X-Chromium protocol
https://bioturing.com/herat
Other
17 stars 4 forks source link

Stop spamming mutex lock instances #25

Closed thangtq139 closed 2 years ago

thangtq139 commented 2 years ago

While kmhash is resizing, the number of mutex lock instance is also increased because each bucket of kmash has an instance of mutex lock. On windows, this leads to too many open mutex lock error, causes segfault.

Solution: shared mutex lock instance between kmhash buckets. (Maybe) better solution: get rid of mutex lock on inner umi hash tables.