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

simplify isVowel() #38

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

simplify isVowel() #38

wants to merge 1 commit into from

Conversation

qqvga
Copy link

@qqvga qqvga commented Aug 19, 2017

The bruteforce vowel check, if it's a performance choice, can be 10x improved by skipping

  • assignment of a new variable
  • the surprising overhead of a complicated function like toLowerCase

Check out a comparison of vowel checkers here:
https://jsperf.com/isvowel

The bruteforce vowel check, if it's a performance choice, can be 10x improved by skipping
- assigning a new variable
- the surprising overhead of a complicated function like toLowerCase

Check it out here:
https://jsperf.com/isvowel
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