Skip to content

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

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

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

Conversation

@Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Jan 4, 2025

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

Copy link
Member

@gurgunday gurgunday left a comment

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
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