Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Conversation

@mathieucarbou
Copy link
Owner

All headers are already parsed: interesting headers allowed to cleanup parsed headers to only keep interesting ones during request processing.

Headers are anyway all cleaned after request processing.

This removal helps reduce flash size and heap usage (on vector less).

@mathieucarbou mathieucarbou self-assigned this Sep 9, 2024
@mathieucarbou mathieucarbou changed the title Remove interesting headers Remove "interesting headers" list Sep 9, 2024
@mathieucarbou mathieucarbou force-pushed the headers branch 7 times, most recently from 50ff2d9 to 185fe00 Compare September 10, 2024 20:56
@mathieucarbou mathieucarbou changed the title Remove "interesting headers" list (perf) Remove interesting headers to fasten request processing Sep 10, 2024
@mathieucarbou mathieucarbou changed the title (perf) Remove interesting headers to fasten request processing (perf) Remove "interesting headers" to fasten request processing Sep 10, 2024
@mathieucarbou mathieucarbou changed the title (perf) Remove "interesting headers" to fasten request processing (perf) Remove "interesting headers" to fasten request processing (replaced with removeHeadersExcept) Sep 11, 2024
Copy link
Collaborator

@vortigont vortigont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small remark so far

All headers are already parsed: interesting headers allowed to cleanup parsed headers to only keep interesting ones during request processing.
Removing "interesting headers" support will keep these parsed headers in heap memory during request processing before being freed at the end of the request.
If you really need to cleanup some headers to get more heap space during request processing, use a middleware and removeHeadersExcept(names) to remove some.
@mathieucarbou
Copy link
Owner Author

I will merge this one today: this one is not as important as the middleware one and is quite simple.

@mathieucarbou
Copy link
Owner Author

And in case you see something, we'll PR a fix.

@mathieucarbou mathieucarbou merged commit 02063bd into main Sep 11, 2024
@mathieucarbou mathieucarbou deleted the headers branch September 13, 2024 23:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants