Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Dec 19, 2025

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

  • Stop timing memory pool interactions. This is in the hot path.
  • Fix bug where write_time was being double counted

How are these changes tested?

if num_rows >= self.batch_size || num_rows + self.num_buffered_rows > self.batch_size {
let concatenated_batch = self.concat_buffered_batches()?;

let write_start_time = Instant::now();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this one is actually a bug fix rather than an optimiation. The timer was already being passed into functions that perform the writes.

@andygrove andygrove marked this pull request as ready for review December 19, 2025 00:17
Copy link
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andygrove!

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.60%. Comparing base (f09f8af) to head (7dde67b).
⚠️ Report is 778 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2941      +/-   ##
============================================
+ Coverage     56.12%   59.60%   +3.47%     
- Complexity      976     1379     +403     
============================================
  Files           119      167      +48     
  Lines         11743    15428    +3685     
  Branches       2251     2550     +299     
============================================
+ Hits           6591     9196    +2605     
- Misses         4012     4946     +934     
- Partials       1140     1286     +146     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@hsiang-c hsiang-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andygrove andygrove merged commit b9fd050 into apache:main Dec 19, 2025
211 of 213 checks passed
@andygrove andygrove deleted the shuffle-writer-timer branch December 19, 2025 04:38
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.

4 participants