-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(pool): pool performance #3565
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
Merged
ndyakov
merged 24 commits into
ndyakov/state-machine-conn
from
ndyakov/pool-performance
Oct 27, 2025
+583
−167
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1b0168d
perf(pool): replace hookManager RWMutex with atomic.Pointer and add p…
ndyakov 78bcfbb
perf(pool): eliminate mutex overhead in state machine hot path
ndyakov 374acc3
perf(pool): use predefined state slices to eliminate allocations in h…
ndyakov f08338e
perf(pool): optimize TryTransition to reduce atomic operations
ndyakov 0773d52
perf(pool): add fast path for Get/Put to match master performance
ndyakov 9481c4d
combine cas
ndyakov d43b973
fix linter
ndyakov d34f1e0
try faster approach
ndyakov c02fe3e
fast semaphore
ndyakov 9ec5dae
better inlining for hot path
ndyakov f8feb0e
fix linter issues
ndyakov 5ff5463
use new semaphore in auth as well
ndyakov 0878735
linter should be happy now
ndyakov b2225f1
Merge branch 'ndyakov/state-machine-conn' into ndyakov/pool-performance
ndyakov f52ab34
add comments
ndyakov d64c4eb
Update internal/pool/conn_state.go
ndyakov 8654d1a
address comment
ndyakov bec09a5
slight reordering
ndyakov 55c502d
try to cache time if for non-critical calculation
ndyakov 4a30663
fix wrong benchmark
ndyakov 316aeb7
add concurrent test
ndyakov da5fe33
fix benchmark report
ndyakov 471a828
add additional expect to check output
ndyakov 9f3f8b7
comment and variable rename
ndyakov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.