Skip to content
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

Introduce faster_writer feature (based on itoa) #142

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Introduce faster_writer feature (based on itoa) #142

merged 1 commit into from
Dec 16, 2023

Conversation

nickbabcock
Copy link
Contributor

Profiling the melter revealed that 20% of CPU time was spent formatting i32s. That's excessive. Swapping it out with itoa reduced it down to 0.3%.

This feature is enabled by default. Only those after absolute zero dependencies should consider disabling it.

This PR also annotates several writer methods with #[inline]

Profiling the melter revealed that 20% of CPU time was spent formatting
i32s. That's excessive. Swapping it out with itoa reduced it down to
0.3%.

This feature is enabled by default. Only those after absolute zero
dependencies should consider disabling it.
@nickbabcock nickbabcock merged commit 1d6dfc9 into master Dec 16, 2023
7 checks passed
@nickbabcock nickbabcock deleted the itoa branch December 16, 2023 19:40
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