Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Optimized isAlphaNumeric for performance #4159

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

Conversation

flexo82
Copy link

@flexo82 flexo82 commented Oct 16, 2018

Optimized isAlphaNumeric to use charcodes instead if regex. This gives the function a worst case 60%+ performance on V8 and 40%+ on Spidermonkey

Copy link
Member

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

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

Cool! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants