Using binary search instead of sequential search for rowData#2129
Conversation
|
this PR dependency that 'SheetData.Row[i].R ' is ordered. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2129 +/- ##
=======================================
Coverage 99.23% 99.23%
=======================================
Files 32 32
Lines 30196 30236 +40
=======================================
+ Hits 29965 30005 +40
Misses 153 153
Partials 78 78
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
xuri
left a comment
There was a problem hiding this comment.
Thanks for your pull request. I've left a comment.
This is awesome! Does these changes increase memory usage? If so, how much memories will be increased? |
no change in memory usage |
xuri
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contribution.
PR Details
Using binary search instead of sequential search for rowData
Description
Related Issue
#1961
Motivation and Context
How Has This Been Tested
Performance testing was conducted on an AMD64 WSL using Go's benchmark tool. The benchmarks were run the test mentioned in #1961 8 times . The following results were observed:
code:
Types of changes
Checklist