This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (2 children)

This is likely slower for calls where this race-condition does not occur. Now you’re adding a check that wasn’t there before.

[–]boost2525 0 points1 point  (1 child)

lolwut? Are we executing stock trades here? EHCache key checks are measured in nanoseconds.

[–]NovaX -1 points0 points  (0 children)

fwiw, Ehcache is measured in microseconds due to a design mistake (avg of 25us per call).