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

Parsing / ignoring headers #4

Open
craff opened this issue Jul 19, 2023 · 0 comments
Open

Parsing / ignoring headers #4

craff opened this issue Jul 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@craff
Copy link
Owner

craff commented Jul 19, 2023

Currently, only official headers are taking into account and only the value of those headers (no its name) is allocated as a string.
There are two possible amelioration:

  • associate a parsing function to each header, which would for instance avoid allocation all allocation for Content-Length.
  • ignore the header that are not used by a Route. We could imagine something using GADT and mostly automatic for the programmer that would give the list of headers used by a route, all others headers could be completely ignored.

Remark: header parsing and the resulting allocation has been a very big source of speed improvement and much more is possible.

@craff craff added the enhancement New feature or request label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant