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

Speed up BackoffSampler with counters #460

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

binaryseed
Copy link
Collaborator

Speed up the BackoffSampler by storing its state in :counters instead of a GenServer. This means it's no longer a process message queue bottleneck.

Kept the implementation functions the same shape so that the logic is unchanged.

Closes #385

@binaryseed binaryseed requested a review from tpitale December 16, 2024 06:31
@tpitale
Copy link
Contributor

tpitale commented Dec 16, 2024

@binaryseed Looks like one failure on 1.15/OTP-26 🤔

@binaryseed binaryseed force-pushed the vince/backoff-sampler-faster branch from 57f9726 to 89b948a Compare December 17, 2024 00:19
@binaryseed
Copy link
Collaborator Author

Fluke perhaps, it's green now

@binaryseed binaryseed mentioned this pull request Dec 17, 2024
10 tasks
@binaryseed binaryseed force-pushed the vince/backoff-sampler-faster branch from 38de12c to e8ec0af Compare December 28, 2024 00:05
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.

DistributedTrace.generate_sampling timeouts.
2 participants