torrust-tracker icon indicating copy to clipboard operation
torrust-tracker copied to clipboard

Use dashmap for torrent in memory storage instead of the std hashmap

Open mickvandijke opened this issue 1 year ago • 1 comments

DashMap should be significantly faster in concurrent reads and writes compared to the std HashMap.

https://github.com/xacrimon/dashmap https://github.com/xacrimon/conc-map-bench

mickvandijke avatar Jan 02 '24 11:01 mickvandijke

Relates to: https://github.com/torrust/torrust-tracker/issues/566

Hi @WarmBeer if you are going to reimplement this, maybe you could also consider trying to avoid this problem.

josecelano avatar Jan 02 '24 12:01 josecelano

Relates to: https://github.com/torrust/torrust-tracker/issues/646

josecelano avatar Mar 18 '24 08:03 josecelano