Skip to content

Avoid numeric formatting strings in StreamWriter and StringWriter - #136768

Merged
stephentoub merged 1 commit into
mainfrom
stephentoub-numeric-text-writer-recovery
Nov 1, 2026
Merged

stephentoub merged 1 commit into
mainfrom
stephentoub-numeric-text-writer-recovery

Conversation

@stephentoub

@stephentoub stephentoub commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Format numeric values into a stack buffer for exact StreamWriter and StringWriter instances instead of allocating strings. Keep the existing string dispatch for derived writers and fall back to a string when the value doesn't fit.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

@stephentoub
stephentoub merged commit face751 into main Nov 1, 2026
138 checks passed
@stephentoub
stephentoub deleted the stephentoub-numeric-text-writer-recovery branch November 1, 2026 01:51
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants