limiting: Make SemaphoreLimiter.Acquire() zero-alloc #8
No reviewers
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
6 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-qos#8
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-qos:limiter-noalloc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously,
Acquire
on exising key did 1 allocation becausefunc() { sem.Release() }
was a closure capturing different variables.Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com
9721fcbac0
toe02209a99a
I will remove or skip the test after approval.
It seems
-race
introduces some problems, but normal tests pass, as they should.The motivation is not only because allocations, but also readability.
e02209a99a
tocafa869fea