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 empty arrays more efficiently #2344

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Conversation

dapplion
Copy link
Contributor

@dapplion dapplion commented Apr 8, 2021

Motivation

Benchmarked getAttestationDeltas()

Description

Creating arrays in a different way is significanly faster that what we use.

Using newZeroedArray() saves about 95 ms per epoch transition in Prater

@codeclimate
Copy link

codeclimate bot commented Apr 8, 2021

Code Climate has analyzed commit 79ee6c5 and detected 0 issues on this pull request.

View more on Code Climate.

@wemeetagain wemeetagain merged commit c6525e3 into master Apr 9, 2021
@wemeetagain wemeetagain deleted the dapplion/new-empty-array branch April 9, 2021 16:01
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

3 participants