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

perf: polish listener.ts #92

Merged
merged 2 commits into from
Nov 12, 2023
Merged

perf: polish listener.ts #92

merged 2 commits into from
Nov 12, 2023

Conversation

yusukebe
Copy link
Member

@yusukebe yusukebe commented Nov 11, 2023

For performance improvement:

  1. Cache regexp objects (though I think it's not very effective).
  2. Avoid using res.headers.get().

The result on Node.js 20:

Screenshot 2023-11-12 at 1 03 14

@yusukebe yusukebe merged commit 311a2a0 into main Nov 12, 2023
3 checks passed
@yusukebe yusukebe deleted the perf/polish-listener branch November 12, 2023 01:28
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.

1 participant