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

Improve performance #72

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Improve performance #72

merged 1 commit into from
Sep 11, 2023

Conversation

mohd-akram
Copy link
Contributor

While profiling, I noticed getCode() was taking too much time. These changes improve performance. To maintain the API, we still return copies via slice() and Object.assign(). Performance can be improved more by removing those.

src/index.js Show resolved Hide resolved
@meikidd
Copy link
Owner

meikidd commented Sep 11, 2023

@mohd-akram Thank you for your neat work!

@meikidd meikidd merged commit 4384d63 into meikidd:master Sep 11, 2023
@meikidd
Copy link
Owner

meikidd commented Sep 11, 2023

@mohd-akram New version v3.1.0 released, please help to check

@mohd-akram mohd-akram deleted the improve-perf branch September 11, 2023 17:00
@mohd-akram
Copy link
Contributor Author

@meikidd Thanks! Works well.

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