-
Notifications
You must be signed in to change notification settings - Fork 677
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
Chore: Remove Box
ing of SymbolicExpression
s
#4530
Chore: Remove Box
ing of SymbolicExpression
s
#4530
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #4530 +/- ##
==========================================
- Coverage 83.29% 83.07% -0.22%
==========================================
Files 452 452
Lines 326071 326068 -3
Branches 323 323
==========================================
- Hits 271589 270876 -713
- Misses 54474 55184 +710
Partials 8 8
... and 33 files with indirect coverage changes Continue to review 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.
Lgtm :) This suggestion stemmed from playing with different binary serialization formats, which aren't as forgiving as JSON.
@kantai Is there a reason we were |
Classic case of early optimization, I think. These structs never need to be resized, so boxed slices were maybe a closer match to their usage than vecs. No real reason that they need to be boxed slices instead of vecs, though, and I doubt that there's a performance benefit to keeping them as boxed slices (I wouldn't be surprised if it was the opposite). |
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.
If it's fine with @kantai it's fine with me 👍
They compile to pretty much the same thing. A |
Boxed slices also had issues with several binary encodings I tried for these types, where Vecs were handled otob -- that's essentially the birth place of the issue, preparing for that kind of change. |
added spaces to todo
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
SymbolicExpression
s andPreSymbolicExpression
s are unnecessarilyBox
ed in a few places in theclarity
crate when used inVec
s. AsVec
s are already on the heap, aBox
is not necessary.Closes #4445