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

Use CAS operation to eliminate synchronized block in Sample Implementation #51

Closed
guanchao-yang opened this issue Aug 9, 2018 · 0 comments
Labels
performance Improve performance
Milestone

Comments

@guanchao-yang
Copy link
Member

Describe

Use CAS operation to eliminate synchronized block in Sample Implementation com.alipay.common.tracer.core.samplers.SofaTracerPercentageBasedSampler

Expected behavior

Sampler don't need synchronized lock and we can use spin lock instead to avoid performance loss.

Actual behavior

We use synchronized to lock the Sampler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improve performance
Projects
None yet
Development

No branches or pull requests

1 participant