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

Fix performance issues and cleanup code #199

Merged

Conversation

vladfrangu
Copy link
Contributor

As shown in #193, turns out, creating the stack trace needlessly is very, very taxing performance wise. With this PR, that is only done IF we're in a browser environment without Error.captureStackTrace.

Also, changes some string arrays to sets, as it helps keep code cleaner and removes some if checks

@vladfrangu vladfrangu force-pushed the regression/fix-performance branch 2 times, most recently from 4605e9d to 91415d0 Compare January 19, 2021 17:29
chore: revert isPredicate check deduplication
Thought this affected peformance, I was wrooong

chore: make codecov happy

chore: eslint...
@sindresorhus sindresorhus changed the title chore: fix performance issues and cleanup code Fix performance issues and cleanup code Jan 19, 2021
@sindresorhus
Copy link
Owner

Can you fix the merge conflict?

@vladfrangu
Copy link
Contributor Author

Done @sindresorhus!

@sindresorhus sindresorhus merged commit 4e3340a into sindresorhus:master Jan 20, 2021
@sindresorhus
Copy link
Owner

Thanks :)

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