Repository navigation
Rewrite XslNumber.ConvertToDecimal - #55868
huoyaoyuan wants to merge 2 commits into
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.
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.