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

create() performance improvements #320

Merged
merged 1 commit into from
Jul 13, 2018
Merged

Conversation

stefnotch
Copy link
Collaborator

@stefnotch stefnotch commented Jun 25, 2018

Since Float32Arrays are filled with 0s by default, we do not have to do that again. The cost of the if is negligible, compared to the potential performance gains.

Resolves: #301 (comment)

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.

None yet

1 participant