sparse-map icon indicating copy to clipboard operation
sparse-map copied to clipboard

Emplace with precalculated hash might be helpful

Open lvnohanyan opened this issue 1 year ago • 1 comments

If we have precalculated hash, emplace/insert might be helpful as well?

lvnohanyan avatar Sep 06 '23 10:09 lvnohanyan

I'd also like to have this enhancement.

Context: I'm working in a multi-thread environment and I need to unlock the mutex as soon as possible. Having this override for emplace/insert it would be possible to compute the hash before locking the mutex.

lucasexe avatar Mar 11 '24 04:03 lucasexe