frostfs-node/pkg/local_object_storage/pilorama
Evgenii Stratonikov 15102e6dfd [#1471] Replace sort.Slice in some places
`slices.SortFunc` doesn't use reflection and is a bit faster.
I have done some micro-benchmarks for `[]NodeInfo`:
```
$ benchstat -col "/func" out
goos: linux
goarch: amd64
pkg: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/pilorama
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
       │ sort.Slice  │           slices.SortFunc           │
       │   sec/op    │   sec/op     vs base                │
Sort-8   2.130µ ± 2%   1.253µ ± 2%  -41.20% (p=0.000 n=10)
```

Haven't included them, though, as they I don't see them being used a
lot.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-11-06 08:07:32 +00:00
..
batch.go [#1471] Replace sort.Slice in some places 2024-11-06 08:07:32 +00:00
bench_test.go [#959] node: Set mode to shard's components when open it 2024-02-09 14:04:01 +00:00
boltdb.go [#1471] Replace sort.Slice in some places 2024-11-06 08:07:32 +00:00
forest.go [#1471] Replace sort.Slice in some places 2024-11-06 08:07:32 +00:00
forest_test.go [#1459] .golangci.yml: Add intrange linter, fix issues 2024-10-30 15:18:22 +00:00
generic_test.go [#xx] Avoid manual management of files in tests 2023-08-14 14:01:39 +03:00
heap.go [#1328] pilorama: Do not skip items in SortedByFilename 2024-08-26 06:11:32 +00:00
info.go [#1333] services/control: Return pilorama info in ListShards RPC 2022-07-21 15:08:24 +03:00
inmemory.go [#1471] Replace sort.Slice in some places 2024-11-06 08:07:32 +00:00
interface.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
meta.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
meta_test.go [#772] node: Apply gofumpt 2023-10-31 17:03:03 +03:00
metrics.go [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
mode_test.go [#959] node: Set mode to shard's components when open it 2024-02-09 14:04:01 +00:00
multinode.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
option.go [#373] pilorama: Add metrics 2023-06-21 15:13:26 +03:00
split_test.go [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
types.go [#335] treesvc: Sort nodes by Filename in GetSubTree 2023-07-20 10:14:10 +03:00
util.go [#1442] pilorama: Generate timestamp based on node position in the container 2022-07-21 15:08:24 +03:00
util_test.go [#1442] pilorama: Generate timestamp based on node position in the container 2022-07-21 15:08:24 +03:00