Skip to content

perf(lib/utils): cache ipv4 regex#115

Merged
Fdawgs merged 1 commit into
mainfrom
perf/cache-regex
Jan 5, 2025
Merged

perf(lib/utils): cache ipv4 regex#115
Fdawgs merged 1 commit into
mainfrom
perf/cache-regex

Conversation

@Fdawgs

@Fdawgs Fdawgs commented Jan 4, 2025

Copy link
Copy Markdown
Member

Cache the IPV4 regex, similar to how the uuid regex is cached in lib/schemes.js. Regex is expensive to create and garbage collect, so this should help a tad!

Checklist

@gurgunday gurgunday left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Fdawgs Fdawgs merged commit 3f27cca into main Jan 5, 2025
@Fdawgs Fdawgs deleted the perf/cache-regex branch January 5, 2025 13:31
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants