-
Notifications
You must be signed in to change notification settings - Fork 605
Speeding up decimal (de)serialization. #984
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
Conversation
I assume decimals aren't used as often, but the improvement is substantial nonetheless. 👍 |
I figured since it's a user-provided field, it might be used considerably in some cases (financial apps come to mind), so better to have most primitives as fast as possible. |
@stebet can you please rebase this on top of the current master? |
Will do. Might not happen until Monday though. |
Sure, no rush :) |
5af39fb
to
a935c43
Compare
Done :) |
I assume this can be backported all the way to |
Yup :) |
Speeding up decimal (de)serialization. (cherry picked from commit 830c747)
Proposed Changes
Serializing the
decimal
datatype allocates 40 bytes every time and deserializing it is sub-optimal. This optimization removes that allocation and speeds up (de)serializing decimal valuesTypes of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
CONTRIBUTING.md
documentResults
Before
After