lucene icon indicating copy to clipboard operation
lucene copied to clipboard

Fix contention in StringHelper.randomId

Open original-brownbear opened this issue 5 months ago • 4 comments

Seeing this mutex contended up to O(10ms) in Elasticsearch at times. Moving to CAS and removing the unnecessary alloction of a new instance for the bitwise-and with the mask makes this perform+scale much better.

original-brownbear avatar Sep 21 '24 10:09 original-brownbear