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

monorepo: remove redundant fills and zeros function #3709

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

gabrocheleau
Copy link
Contributor

This PR removes instances where we are needlessly filling Uint8Array's with zeroes with fill(0) (this is unnecessary because Uint8Arrays are initialized with zeroes already).

The PR also removes the zeros method, which was useful in the Buffer days since that operation was somewhat complex, but now it does not seem worth it to keep it.

Copy link
Member

@jochem-brouwer jochem-brouwer left a comment

Choose a reason for hiding this comment

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

LGTM. Have re-triggered CI because browser tests failed (could not load some dynamic module from some url). Hopefully it now passes.

@gabrocheleau gabrocheleau merged commit 657cdad into master Sep 28, 2024
39 checks passed
@gabrocheleau gabrocheleau deleted the monorepo/remove-redundant-fills branch September 28, 2024 21:01
@holgerd77
Copy link
Member

Oh, very nice clean up, didn’t notice yet. 🙏

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

Successfully merging this pull request may close these issues.

3 participants