nodejs / llhttp

Port of http_parser to llparse

Home Page:http://llhttp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it allowed to share `lhttp_settings_t` between multiple parsers?

vitorb-rzero opened this issue · comments

Pretty much the title question. I'm working on a memory constrained environment, so saving some bytes by reusing this struct would be great. All parsers would have the same settings, of course.

Yes, there is no state in the callback table. As an example, @pallas/pyllhttp uses a single table for multiple parsers.