Improve performance of readLong function unrolling loop and using bitwise operators instead of additions#763
Merged
cheenamalhotra merged 3 commits intomicrosoft:devfrom Aug 17, 2018
Merged
Conversation
…wise operators instead of additions
Codecov Report
@@ Coverage Diff @@
## dev #763 +/- ##
============================================
+ Coverage 48.17% 48.41% +0.24%
- Complexity 2776 2799 +23
============================================
Files 116 116
Lines 27854 27852 -2
Branches 4636 4635 -1
============================================
+ Hits 13418 13484 +66
- Misses 12215 12232 +17
+ Partials 2221 2136 -85
Continue to review full report at Codecov.
|
…wise operators instead of additions + unit test
Member
|
Hi @robertonr, thank you for your contribution to the mssql-jdbc driver. Please restrict the visibility of |
Contributor
Author
|
Hello, the change of visibility is done, thank you!
|
rene-ye
approved these changes
Aug 16, 2018
cheenamalhotra
approved these changes
Aug 17, 2018
ulvii
approved these changes
Aug 17, 2018
peterbae
approved these changes
Aug 17, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello, I'm using mssql-jdbc driver for long time and profiling my application for 20 minutes I found that TDSChannel.read() is taking around 548297 milliseconds of CPU (I guess it's due to synchronization). However improving readLong method I reduced around 30000 milliseconds of pure CPU usage.
Could you merge this small change, please?