frostfs-qos/limiting
Evgenii Stratonikov e02209a99a
Some checks failed
DCO action / DCO (pull_request) Successful in 32s
Tests and linters / Run gofumpt (pull_request) Successful in 44s
Vulncheck / Vulncheck (pull_request) Successful in 47s
Tests and linters / Tests (pull_request) Successful in 49s
Tests and linters / Tests with -race (pull_request) Failing after 53s
Tests and linters / Staticcheck (pull_request) Successful in 1m1s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m20s
Tests and linters / Lint (pull_request) Successful in 1m39s
Tests and linters / gopls check (pull_request) Successful in 1m57s
[#8] limiting: Make SemaphoreLimiter.Acquire() zero-alloc
Previously, `Acquire` on exising key did 1 allocation because
`func() { sem.Release() }` was a closure capturing different variables.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-02-26 13:18:59 +03:00
..
semaphore [#4] limiting/semaphore: Add benchmark for semaphore 2025-02-13 15:50:59 +03:00
limiter.go [#8] limiting: Make SemaphoreLimiter.Acquire() zero-alloc 2025-02-26 13:18:59 +03:00
limiter_test.go [#8] limiting: Make SemaphoreLimiter.Acquire() zero-alloc 2025-02-26 13:18:59 +03:00