-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rewrite XslNumber.ConvertToDecimal #55868
Conversation
@krwq This PR is assigned to you for follow-up/decision before the RC1 snap. |
We should consider merging this after RC1 snap. Marking as no merge for now |
@krwq Can you take a look at this again now that |
Bump. I think we can take another look at this now. |
{ | ||
NumberFormatInfo info = nativeDigits == null | ||
? NumberFormatInfo.InvariantInfo | ||
: new NumberFormatInfo |
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.
How does the performance of this rewrite compares to the existing implementation?
The existing implementation does not allocate NumberFormatInfo
. Is allocating of NumberFormatInfo
going to regress performance?
We need some perf measurements here. Current version because of all of the NumberFormatInfo related allocations might be slower than original |
Sorry, I have no time to do the measurement recently. |
This pull request has been automatically marked |
This pull request will now be closed since it had been marked |
Split from #54103
This is to remove a dependency to XPathConvert.DoubleToString. I don't know if there are test for this.