frostfs-node/pkg/network
Evgenii Stratonikov c7a12ca3d8
DCO action / DCO (pull_request) Successful in 5m33s Details
Vulncheck / Vulncheck (pull_request) Successful in 5m54s Details
Build / Build Components (1.21) (pull_request) Successful in 10m3s Details
Tests and linters / gopls check (pull_request) Successful in 11m49s Details
Build / Build Components (1.20) (pull_request) Successful in 12m47s Details
Tests and linters / Staticcheck (pull_request) Successful in 13m21s Details
Tests and linters / Lint (pull_request) Successful in 14m21s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 16m39s Details
Tests and linters / Tests with -race (pull_request) Successful in 16m46s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 16m59s Details
[#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
..
cache [#809] client: Refactor PrmInit, PrmDial usage 2023-11-17 13:37:03 +00:00
transport [#772] node: Apply gofumpt 2023-10-31 17:03:03 +03:00
address.go [#973] node: Resolve perfsprint linter 2024-03-11 17:55:50 +03:00
address_test.go Move to frostfs-node 2022-12-28 15:04:29 +03:00
group.go [#1] treesvc: Properly check for secure transport 2023-06-28 12:13:20 +00:00
group_test.go Move to frostfs-node 2022-12-28 15:04:29 +03:00
tls.go [#1054] network: Optimize IsTLSEnabled() 2024-03-21 18:48:35 +03:00
tls_test.go [#1054] network: Optimize IsTLSEnabled() 2024-03-21 18:48:35 +03:00
validation.go Rename package name 2023-03-07 16:38:26 +03:00
validation_test.go Rename package name 2023-03-07 16:38:26 +03:00