Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Small performance gain in allocations #7054

Merged
merged 1 commit into from Nov 14, 2017
Merged

Small performance gain in allocations #7054

merged 1 commit into from Nov 14, 2017

Conversation

kirushik
Copy link
Collaborator

As measured in https://gist.github.com/kirushik/e0d93759b0cd102f814408595c20a9d0, it's much faster not to iterate over zeroes, and just allocate a contiguous array of zeroes directly.

As measured in
https://gist.github.com/kirushik/e0d93759b0cd102f814408595c20a9d0,
it's much faster not to iterate over zeroes, and just allocate a
contiguous array of zeroes directly.
@parity-cla-bot
Copy link

It looks like @kirushik signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@kirushik kirushik added A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). M4-core ⛓ Core client code / Rust. labels Nov 14, 2017
@debris debris added the A8-looksgood 🦄 Pull request is reviewed well. label Nov 14, 2017
@debris debris merged commit e6048e4 into master Nov 14, 2017
@kirushik kirushik deleted the allocate_with_zeroes branch November 14, 2017 14:49
@5chdn 5chdn added this to the 1.9 milestone Nov 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants