-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Speed up EDF and BDF reading #14237
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
Merged
larsoner
merged 14 commits into
mne-tools:main
from
bruAristimunha:perf/raw-io-cold-path
Aug 29, 2026
Merged
Speed up EDF and BDF reading #14237
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1744ac8
Avoid materializing Raw time vectors during setup
bruAristimunha c082b9d
Speed up uniform EDF and BDF decoding
bruAristimunha fcb8b99
Use cache-sized blocks for BrainVision reads
bruAristimunha c17ea82
Reuse parsed EEGLAB metadata for annotations
bruAristimunha 2681bc6
Pipeline large EDF, BDF, and BrainVision preloads
bruAristimunha e9770d6
Add changelog entry for the cold-path IO speedups
bruAristimunha ea3b9ae
Let the stride path handle EDF+ annotation channels
bruAristimunha 990b264
Merge remote-tracking branch 'upstream/main' into perf/raw-io-cold-path
bruAristimunha 049ff5b
Trim the PR: drop the byte budget, threading and test bloat
bruAristimunha 55a35f9
Simplify the EDF stride decode to one branch in the existing loop
bruAristimunha a9cd13f
Merge branch 'main' into perf/raw-io-cold-path
larsoner a124497
Address review: document the readable decode, add a times fixture
bruAristimunha fe4c5f1
Allowlist the fail_if_times_materialized fixture for vulture
bruAristimunha 354e336
Re-run CI (nilearn intersphinx inventory was unreachable)
bruAristimunha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Speed up preloading Raw data and reading uniform EDF and BDF data by avoiding unnecessary setup and using pure-NumPy record-stride decoders, by `Bruno Aristimunha`_. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For optimizations like this that are maybe not as readable, I like to leave in a comment the more readable three--liner that would do the same thing. It helps the conceptual model for the next person who has to debug the code (and they can easily switch to using it if they suspect the optimized code is the problem)