frostfs-node/pkg/local_object_storage
Evgenii Stratonikov 1f4061c0e2
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/push/pre-commit Pipeline was successful
[#285] blobonicza: Optimize upperPowerOfTwo()
The real reason is this:
```
pkg/local_object_storage/blobovnicza/sizes.go:36:69
    revive empty-block: this block is empty, you can remove it
```

Didn't want to make this function longer or to add `nolint`, thus this
change. To justify:
```
UpperBound/size=1-8          0.4924n ± 1%   0.2472n ± 2%  -49.80% (p=0.000 n=10)
UpperBound/size=1023-8       0.4936n ± 3%   0.2442n ± 1%  -50.52% (p=0.000 n=10)
UpperBound/size=66560-8      0.8201n ± 2%   0.2436n ± 1%  -70.29% (p=0.000 n=10)
UpperBound/size=41943040-8   6.6900n ± 5%   0.2432n ± 0%  -96.36% (p=0.000 n=10)
geomean                       1.075n        0.2446n       -77.24%
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-04-26 17:35:11 +03:00
..
blobovnicza [#285] blobonicza: Optimize upperPowerOfTwo() 2023-04-26 17:35:11 +03:00
blobstor [#285] lint: Fix revive/unused-parameter 2023-04-26 17:35:04 +03:00
engine [#250] control: remove DumpShard and RestoreShard RPC 2023-04-14 12:28:49 +00:00
internal testutil: Fix linter warning 2023-04-12 11:00:02 +03:00
metabase Revert "[#262] meta: Do not return old expired objects" 2023-04-20 19:22:55 +03:00
pilorama [#242] treesvc: Add tracing spans 2023-04-14 10:25:53 +00:00
shard [#250] control: remove DumpShard and RestoreShard RPC 2023-04-14 12:28:49 +00:00
util Rename package name 2023-03-07 16:38:26 +03:00
writecache [#274] wc: Resolve possible deadlock 2023-04-20 19:22:54 +03:00