Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jasnell
Copy link
Collaborator

@jasnell jasnell commented Oct 30, 2025

Make the constants constexpr, eliminate a couple of double allocations in parse, and add a couple of utility functions for common uses to eliminate extraneous allocations.

@jasnell jasnell requested a review from anonrig October 30, 2025 02:47
@jasnell jasnell requested review from a team as code owners October 30, 2025 02:47
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 30, 2025

CodSpeed Performance Report

Merging #5437 will improve performances by 42.81%

Comparing jasnell/minor-improvements-mimetype (2f7a11b) with main (bef4547)

Summary

⚡ 3 improvements
✅ 31 untouched
⏩ 9 skipped1

Benchmarks breakdown

Benchmark BASE HEAD Change
ParseAndSerialize 79.4 ms 70.5 ms +12.55%
Serialize 97.9 ms 68.5 ms +42.81%
simpleStringBody[Response] 23.9 µs 22.1 µs +8.39%

Footnotes

  1. 9 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Make the constants constexpr, eliminate a couple of
double allocations in parse, and add a couple of
utility functions for common uses to eliminate
extrane allocations.
@jasnell jasnell force-pushed the jasnell/minor-improvements-mimetype branch from b1eeeca to 2f7a11b Compare October 30, 2025 03:20
@jasnell jasnell merged commit e7291e9 into main Oct 30, 2025
32 of 33 checks passed
@jasnell jasnell deleted the jasnell/minor-improvements-mimetype branch October 30, 2025 05:14
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

Successfully merging this pull request may close these issues.

2 participants