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: improve JSON signature regex for performance and clarity #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mancuoj
Copy link

@mancuoj mancuoj commented Aug 10, 2024

Changed capturing groups to non-capturing groups in JsonSigRx regex to slightly improve performance, as captured groups were not being used.

Changed capturing groups to non-capturing groups in JsonSigRx regex to slightly improve performance, as captured groups were not being used.
@pi0
Copy link
Member

pi0 commented Aug 12, 2024

Thanks for PR but can you please also share a benchmark diff report against both Node.js and Bun? 🙏🏼

(since this is a security area, i rather to minimize changes and only make it if it really makes a change)

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