-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance: pre-allocate result FieldData space to reduce copy & growslice #29726
enhance: pre-allocate result FieldData space to reduce copy & growslice #29726
Conversation
See also: milvus-io#29113 Add a new utitliy function in `pkg/util/typetuil` to pre-allocate field data slice capacity acoording to search limit. This shall avoid copying the data during `AppendFieldData` when previous slice is out of space. And shall also save CPU time during high paylog. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
@congqixia E2e jenkins job failed, comment |
/run-cpu-e2e |
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #29726 +/- ##
==========================================
+ Coverage 80.82% 83.23% +2.41%
==========================================
Files 926 693 -233
Lines 127767 110943 -16824
==========================================
- Hits 103271 92348 -10923
+ Misses 21145 15123 -6022
- Partials 3351 3472 +121
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
…ce (milvus-io#29726) See also: milvus-io#29113 Add a new utitliy function in `pkg/util/typetuil` to pre-allocate field data slice capacity acoording to search limit. This shall avoid copying the data during `AppendFieldData` when previous slice is out of space. And shall also save CPU time during high paylog. --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
…growslice (#29726) (#29866) Cherry-pick from master pr: #29726 See also: #29113 Add a new utitliy function in `pkg/util/typetuil` to pre-allocate field data slice capacity acoording to search limit. This shall avoid copying the data during `AppendFieldData` when previous slice is out of space. And shall also save CPU time during high paylog. --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
See also: #29113
Add a new utitliy function in
pkg/util/typetuil
to pre-allocate field data slice capacity acoording to search limit. This shall avoid copying the data duringAppendFieldData
when previous slice is out of space. And shall also save CPU time during high paylog.