frostfs-node/pkg/network
Evgenii Stratonikov c7a12ca3d8 [#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