-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
util: lazy parse mime parameters #49889
util: lazy parse mime parameters #49889
Conversation
@metcoder95 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I'm just curious about the results
cae6ad7
to
b00e9bc
Compare
Thanks ;) |
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1422/ Results
|
@Uzlopak Can you reduce the number of iterations on the benchmarks? The current benchmark ci is taking many hours. |
@aduh95 |
Co-authored-by: Antoine du Hamel <[email protected]>
lets apply your remark. I go to sleep now |
The benchmark has taken 16 hours to complete, which is an improvement over the 17 hours it took the first time, but a relatively small one if you ask me. I wonder what's taking so long, it would be beneficial to lower that time further. |
@aduh95 |
Ah yeah, the |
Landed in 54bb691 |
PR-URL: nodejs#49889 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: #49889 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
PR-URL: nodejs#49889 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
This PR improves the instantiation speed of MimeType by parsing the MimeParams lazily.
MimeParams accepts now a string of the parameter rest.