-
Notifications
You must be signed in to change notification settings - Fork 340
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
Refactored prival from string for performance #437
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## latest #437 +/- ##
==========================================
- Coverage 90.86% 90.48% -0.38%
==========================================
Files 47 47
Lines 4389 4373 -16
Branches 586 585 -1
==========================================
- Hits 3988 3957 -31
- Misses 269 281 +12
- Partials 132 135 +3 ☔ View full report in Codecov by Sentry. |
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.
Thanks very much for putting this change together! My apologies for the delay in getting it reviewed.
There is just one change that needs to be made in order to properly preserve the cause of an error, and once that is done this should be ready to go!
Just one more header fixup and I believe this will be ready. |
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.
My apologies for changing this review response, but in reviewing the coverage report and seeing the error check as only partially covered, I believe the logic needs to be adjusted slightly as mentioned in the comment. This should both correct the coverage and also make the error return path more clear and intentional.
So what I did now is, I solved issue #438 also with this pr. With this fix there are no allocations performed by the function so from my perspective those tests become irrelevant. This also allowed me to remove the check I added to see if there already was an error. But I think the issue of errors being overwritten can still occur in other places so maybe this is a new issue. |
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.
I think this is a great approach! There are a few other tests that are failing now as they were expecting memory allocation failures - you can either remove these completely or simply change the expected results to be no error.
The Windows builds are failing because Since the second option will require some cmake work and the addition of several more source files and |
Thanks once again for putting this change together, and sticking with it through all of the requested changes! |
This PR addresses issue #428 by significantly reducing allocations and execution time, as demonstrated by the
run-performance-test-prival
results.Updated
get_x_from_buffer
functions to correctly utilize the length parameter and ensure function test correctness.The check I removed failed. I don't know exactly why it the check didn't exist in the corresponding test of facility so I removed it.