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

Use itoa when formatting content-length #203

Open
fasterthanlime opened this issue Aug 13, 2024 · 1 comment
Open

Use itoa when formatting content-length #203

fasterthanlime opened this issue Aug 13, 2024 · 1 comment

Comments

@fasterthanlime
Copy link
Collaborator

And perhaps generate a magic string to format small lengths without any allocation at all, like we do for status codes?

@fasterthanlime
Copy link
Collaborator Author

And perhaps generate a magic string to format small lengths without any allocation at all, like we do for status codes?

This perf investigation was done when adding benchmarks.

Usage of itoa / an itoa Buffer pool would also be beneficial for content-length chunks in HTTP/1.1

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

No branches or pull requests

1 participant