Use typed HRW methods #21

Merged
dstepanov-yadro merged 2 commits from feat/hrw-optimize into master 2023-02-28 15:07:15 +00:00
dstepanov-yadro commented 2023-02-27 14:25:14 +00:00 (Migrated from github.com)

Update HRW pkg and use typed HRW methods to sort nodes

Update HRW pkg and use typed HRW methods to sort nodes
alexvanin (Migrated from github.com) reviewed 2023-02-27 14:25:14 +00:00
ale64bit (Migrated from github.com) reviewed 2023-02-27 14:25:14 +00:00
fyrchik (Migrated from github.com) reviewed 2023-02-27 14:58:47 +00:00
@ -154,3 +154,3 @@
copy(result[i], vectors[i])
hrw.SortSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
hrw.SortHasherSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
}
fyrchik (Migrated from github.com) commented 2023-02-27 14:54:23 +00:00

Can we do an optimization with hash precalculation, similar to what you've done in the frostfs-node?

Should be done in readFromV2 and SetPublicKey functions. We should also fallback to a normal calculation if the hash is 0. Am I missing something here? @carpawell

Can we do an optimization with hash precalculation, similar to what you've done in the `frostfs-node`? Should be done in `readFromV2` and `SetPublicKey` functions. We should also fallback to a normal calculation if the hash is 0. Am I missing something here? @carpawell
dstepanov-yadro (Migrated from github.com) reviewed 2023-02-27 15:41:20 +00:00
@ -154,3 +154,3 @@
copy(result[i], vectors[i])
hrw.SortSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
hrw.SortHasherSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
}
dstepanov-yadro (Migrated from github.com) commented 2023-02-27 15:41:19 +00:00

done

done
fyrchik (Migrated from github.com) reviewed 2023-02-28 07:37:35 +00:00
@ -154,3 +154,3 @@
copy(result[i], vectors[i])
hrw.SortSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
hrw.SortHasherSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
}
fyrchik (Migrated from github.com) commented 2023-02-28 07:37:34 +00:00

Could you mention about this in the commit message? Actually, a separate commit for this specific opitimization would be nice.

Could you mention about this in the commit message? Actually, a separate commit for this specific opitimization would be nice.
acid-ant (Migrated from github.com) reviewed 2023-02-28 08:45:49 +00:00
dstepanov-yadro (Migrated from github.com) reviewed 2023-02-28 11:07:08 +00:00
@ -154,3 +154,3 @@
copy(result[i], vectors[i])
hrw.SortSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
hrw.SortHasherSliceByWeightValue(result[i], nodes(result[i]).weights(wf), h)
}
dstepanov-yadro (Migrated from github.com) commented 2023-02-28 11:07:07 +00:00

done

done
acid-ant (Migrated from github.com) approved these changes 2023-02-28 11:23:23 +00:00
fyrchik (Migrated from github.com) approved these changes 2023-02-28 15:07:05 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#21
There is no content yet.