Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: remove unnecessary blocking in EVCacheOperationFuture #156

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

jasonk000
Copy link
Member

Currently the EVCacheOperationFuture does an isCancelled check before emitting a metric, however this metric is now dead code. But, the isCancelled check is still a synchronized method which results in occasional blocking against memcache event loop.

While we are here, clean a tiny bit.

Specifically, this goes through OperationFuture.isCancelled() -> public final synchronized boolean BaseOperationImpl.isCancelled()

Currently the EVCacheOperationFuture does an isCancelled check before
emitting a metric, however this metric is now dead code. But, the
isCancelled check is still a synchronized method which results in
occasional blocking against memcache event loop.
@pkarumanchi9 pkarumanchi9 merged commit 5dd9ba4 into Netflix:master Feb 4, 2025
1 check passed
@jasonk000 jasonk000 deleted the jkoch/less-locking-1 branch February 4, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants