Skip to content

perf(split): optimize FixedWidthNumber Display implementation#10723

Draft
CrazyRoka wants to merge 1 commit intouutils:mainfrom
CrazyRoka:optimize-split-number-format
Draft

perf(split): optimize FixedWidthNumber Display implementation#10723
CrazyRoka wants to merge 1 commit intouutils:mainfrom
CrazyRoka:optimize-split-number-format

Conversation

@CrazyRoka
Copy link
Contributor

Currently, the Display implementation for FixedWidthNumber collects all mapped digits into a temporary String before writing them to the formatter. This incurs an unnecessary heap allocation every time a number is formatted.

This change replaces formatting logic with direct write_char calls with optimization in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant