-
Notifications
You must be signed in to change notification settings - Fork 224
Added reserve
to pushable containers in parquet extend_from_decoder
#1301
Added reserve
to pushable containers in parquet extend_from_decoder
#1301
Conversation
Codecov ReportBase: 83.12% // Head: 83.14% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1301 +/- ##
==========================================
+ Coverage 83.12% 83.14% +0.02%
==========================================
Files 369 369
Lines 40180 40211 +31
==========================================
+ Hits 33399 33434 +35
+ Misses 6781 6777 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
7a60529
to
518cfeb
Compare
518cfeb
to
59f6495
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ritchie46 !
I have been thinking a bit about this one. How often do we call the function that does the reserve? If it only writes to that buffer in one function call, I think it makes sense to reserve up front. If we call this function more often (with the same EDIT: I've adapted the code a bit, so that we first determine how much space we need to reserve, then we do a second pass to actually fill the buffers. |
3c9d42d
to
4d8eeef
Compare
4d8eeef
to
a40f689
Compare
reserve
to pushable containers in parquet extend_from_decoder
This ensure we reserve the amount of slots we are going to push into the container up front.