-
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
{U}Int128 support for Utf8Formatter/Parser #86357
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/area-system-memory Issue DetailsClose #73842 The implementation is almost copy-paste from {U}Int64 as same as other types doing for previous size types. I can try to reduce some duplication, but not sure if it's possible without any performance losses Holding draft to see CI tests
|
@tannergooding, do we still want new methods on Utf8Formatter for UInt128 / Int128? With UTF8 support now baked into the types, Utf8Formatter is largely obsolete. |
I think its probably worth a timeboxed discussion in API review. Having I think the ideal scenario, in my mind, would be to not expose this support for If we did decide to provide it on |
Yup. I was referring specifically to Utf8Formatter. The only argument I see for adding to it at this point is when we add something to Utf8Parser and then want some kind of consistency between them even though we would discourage anyone from using the Utf8Formatter APIs. While I'm all for consistency, adding APIs we don't actually want folks to use isn't desirable.
I'm fine with that, too. Then both Utf8Formatter and Utf8Parser are entirely obsolete, whether we choose to mark them as such or not. |
I've opened #87171 covering the proposed new functionality. Depending on API review we may want to either keep the PR as is -or- to pull what's been implemented so far into the general parsing logic. |
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
Close #73842
The implementation is almost copy-paste from {U}Int64 as same as other integer types doing for previous size types. I can try to reduce some duplication, but not sure if it's possible without any performance losses
Holding draft to see CI tests, fix missed type casts and possible typos
Blocked by #73842 (comment)