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

HTTPHeaders.description is unnecessarily slow #2930

Open
weissi opened this issue Oct 16, 2024 · 0 comments
Open

HTTPHeaders.description is unnecessarily slow #2930

weissi opened this issue Oct 16, 2024 · 0 comments

Comments

@weissi
Copy link
Member

weissi commented Oct 16, 2024

Expected behavior

HTTPHeaders.description should be reasonably fast and shouldn't do any dynamic debugPrint(...)

Actual behavior

It's slow. Look at this image: about 15% of the overall runtime of a client hitting /dynamic/info is just spent doing header printing...

Screenshot 2024-10-16 at 12 35 25 pm

That's largely because of debugPrint etc.

Printing HTTP headers is somewhat common and shouldn't be unnecessarily fast. The representation could also be nicer.

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