Skip to content

Fix distribution bottleneck for higher dimensional grids#832

Merged
BrianMichell merged 5 commits into
TGSAI:mainfrom
BrianMichell:enh/grid_distribution
Jun 15, 2026
Merged

Fix distribution bottleneck for higher dimensional grids#832
BrianMichell merged 5 commits into
TGSAI:mainfrom
BrianMichell:enh/grid_distribution

Conversation

@BrianMichell

Copy link
Copy Markdown
Collaborator

In the trace_worker there was a hidden pickling bottleneck of the grid. This became very apparent on large ReceiverGathers3D datasets with a grid of ~200k chunks to process in this phase. The overall progress would only be able to use a single core due to GIL blocking.

This approach was selected to pay an nproc penalty to pickle to each process in the pool once, after which the resource should be recycled until the pool is drained.

@BrianMichell BrianMichell added the performance Performance label Jun 15, 2026
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 40.00000% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.86%. Comparing base (c3ba558) to head (3c4dcd7).
⚠️ Report is 242 commits behind head on main.

Files with missing lines Patch % Lines
src/mdio/segy/_workers.py 29.41% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #832      +/-   ##
==========================================
+ Coverage   85.30%   92.86%   +7.55%     
==========================================
  Files          46      143      +97     
  Lines        2219     8168    +5949     
  Branches      306      462     +156     
==========================================
+ Hits         1893     7585    +5692     
- Misses        281      509     +228     
- Partials       45       74      +29     

☔ View full report in Codecov by Harness.
📢 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.

@BrianMichell BrianMichell merged commit b6fe55a into TGSAI:main Jun 15, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant