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

Don't zero the array on initialization #43

Merged
merged 1 commit into from Mar 22, 2017
Merged

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented Mar 22, 2017

Using mem::uninitialized is potentially faster than mem::zeroed, and doesn't remove any safety (since both uninitialized memory and zeroed memory are unsafe to read from in general).


This change is Reviewable

Using `mem::uninitialized` is potentially faster than `mem::zeroed`, and
doesn't remove any safety (since both uninitialized memory and zeroed
memory are unsafe to read from in general).
@jdm
Copy link
Member

jdm commented Mar 22, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2017

📌 Commit 4ba8345 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2017

Testing commit 4ba8345 with merge e4b459e...

bors-servo added a commit that referenced this pull request Mar 22, 2017
Don't zero the array on initialization

Using `mem::uninitialized` is potentially faster than `mem::zeroed`, and doesn't remove any safety (since both uninitialized memory and zeroed memory are unsafe to read from in general).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/43)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2017

💔 Test failed - status-travis

@mbrubeck
Copy link
Contributor Author

mbrubeck commented Mar 22, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2017

Testing commit 4ba8345 with merge ce94fc6...

bors-servo added a commit that referenced this pull request Mar 22, 2017
Don't zero the array on initialization

Using `mem::uninitialized` is potentially faster than `mem::zeroed`, and doesn't remove any safety (since both uninitialized memory and zeroed memory are unsafe to read from in general).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/43)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2017

☀️ Test successful - status-travis
Approved by: jdm
Pushing ce94fc6 to master...

@bors-servo bors-servo merged commit 4ba8345 into servo:master Mar 22, 2017
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.