Uh oh!
There was an error while loading. Please reload this page.
ARROW-11048: [Rust] Added bench to MutableBuffer - #9032
Conversation
Dandandan
commented
Dec 28, 2020
I am not sure what is causing the difference, I would expect it to be faster just as |
jhorstmann
commented
Dec 28, 2020
I think |
just FYI, I found one reason. |
Dandandan
left a comment
There was a problem hiding this comment.
LGTM, nice to be able to measure this / remove inefficiencies 👍
alamb
commented
Dec 31, 2020
The full set of Rust CI tests did not run on this PR :( Can you please rebase this PR against apache/master to pick up the changes in #9056 so that they do? I apologize for the inconvenience. |
codecov-io
commented
Jan 1, 2021
Codecov Report
@@ Coverage Diff @@## master #9032 +/- ##
=======================================
Coverage 82.61% 82.61% =======================================
Files 202 202 Lines 50048 50048 =======================================
Hits 41347 41347 Misses 8701 8701 Continue to review full report at Codecov.
|
alamb
commented
Jan 1, 2021
I believe these benches were already added as part of #8997 (which I found out while trying to merge this PR -- LOL) |
jorgecarleitao
commented
Jan 2, 2021
Closing as this code was merged as part of another PR |
This bench compares the behavior of
MutableBuffervs allocatingVec<u8>and usingextend_from_slice.On my computer:
I.e. growing a
MutableBufferseems to be 2x faster than creating aVecand usingBuffer::fromto convert it to aBuffer.It is odd that creating a buffer with the correct capacity takes longer, though. Any ideas @jhorstmann , @Dandandan ?