frostfs-node/pkg
Evgenii Stratonikov c7a12ca3d8
All checks were successful
DCO action / DCO (pull_request) Successful in 5m33s
Vulncheck / Vulncheck (pull_request) Successful in 5m54s
Build / Build Components (1.21) (pull_request) Successful in 10m3s
Tests and linters / gopls check (pull_request) Successful in 11m49s
Build / Build Components (1.20) (pull_request) Successful in 12m47s
Tests and linters / Staticcheck (pull_request) Successful in 13m21s
Tests and linters / Lint (pull_request) Successful in 14m21s
Tests and linters / Tests (1.20) (pull_request) Successful in 16m39s
Tests and linters / Tests with -race (pull_request) Successful in 16m46s
Tests and linters / Tests (1.21) (pull_request) Successful in 16m59s
[#1054] network: Optimize IsTLSEnabled()
No big deal, but it is called multiple times in sorting routine, this
easily results in 20 allocations per group traversal.

```
goos: linux
goarch: amd64
pkg: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/network
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
                    │     old     │                 new                 │
                    │   sec/op    │   sec/op     vs base                │
AddressTLSEnabled-8   184.6n ± 1%   103.3n ± 6%  -44.04% (p=0.000 n=10)

                    │    old     │                new                │
                    │    B/op    │   B/op    vs base                 │
AddressTLSEnabled-8   704.0 ± 0%   0.0 ± 0%  -100.00% (p=0.000 n=10)

                    │    old     │                 new                 │
                    │ allocs/op  │ allocs/op   vs base                 │
AddressTLSEnabled-8   1.000 ± 0%   0.000 ± 0%  -100.00% (p=0.000 n=10)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-03-21 18:48:35 +03:00
..
ape/chainbase [#976] ape: Update dependency 2024-03-13 14:54:19 +03:00
core [#825] policer: Do not drop required linking objects 2023-12-12 11:04:03 +00:00
innerring [#973] node: Resolve perfsprint linter 2024-03-11 17:55:50 +03:00
local_object_storage [#1048] metabase: Fix drop buckets during resync 2024-03-19 14:28:31 +03:00
metrics [#864] engine: Drop container count metric if container removed 2024-01-10 10:45:32 +03:00
morph [#976] morph: Implement missing methods for SwitchRPCGuardedActor 2024-03-13 14:54:19 +03:00
network [#1054] network: Optimize IsTLSEnabled() 2024-03-21 18:48:35 +03:00
services [#1047] object: Set container owner ID property to ape request 2024-03-18 15:39:50 +00:00
tracing [#146] node: Add trace_id to logs 2023-09-27 11:05:27 +03:00
util [#973] node: Resolve perfsprint linter 2024-03-11 17:55:50 +03:00