Small perfomance optimizations, cleanup #236
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-sdk-committers
TrueCloudLab/storage-sdk-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No Label
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#236
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "fyrchik/frostfs-sdk-go:sort-faster"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Total improvement:
1453fb21ce
to917ceecc5d
917ceecc5d
to0ad31ef05f
0ad31ef05f
toccae4bcace
ccae4bcace
to1decccc542
1decccc542
toc4ff8a6cda
@ -118,1 +116,3 @@
w := make([]float64, 0, len(n))
func (n nodes) appendWeightsTo(wf weightFunc, w []float64) []float64 {
if cap(w) < len(n) {
w = make([]float64, 0, len(n))
The method's name is
appendWeightsTo
. Here you passw
, then just reallocatew
but you don't save previous values. We need to fix that?