Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
Description
o.a.c.net.RateBasedBackPressure#apply calls getRate() on the underlying Guava RateLimiter several times in quick succession (including as the argument to a non level checked log statement).
Said getRate() method acquires a lock within RateLimiter, so just getting a local variable reference will remove several calls and thus several lock acquisitions.