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

Optimized isAlphaNumeric for performance#4159

Open
flexo82 wants to merge 1 commit into
visjs:developfrom
flexo82:develop
Open

Optimized isAlphaNumeric for performance#4159
flexo82 wants to merge 1 commit into
visjs:developfrom
flexo82:develop

Conversation

@flexo82

@flexo82 flexo82 commented Oct 16, 2018

Copy link
Copy Markdown

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

@mojoaxel mojoaxel 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.

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