Skip to content
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

Pre-allocate buffer for pylsl's .pull_chunk for faster reads #47

Merged
merged 8 commits into from
Apr 11, 2023

Conversation

charlesbmi
Copy link
Contributor

Useful for high sampling rates (and just better latency), as recommended by: https://labstreaminglayer.readthedocs.io/info/faqs.html#high-sampling-rates

@charlesbmi charlesbmi marked this pull request as ready for review April 7, 2023 23:45
@jasmainak
Copy link
Member

looks fair ... you might save some additional time by avoiding the data.copy but that might be safer.

Any test to update/add?

Copy link
Member

@teonbrooks teonbrooks left a comment

Choose a reason for hiding this comment

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

hey, thanks for the contribution. just added some comments and a question about the buffer. feel free to ping the thread if you want us to look at it some more

mne_realtime/lsl_client.py Outdated Show resolved Hide resolved
mne_realtime/lsl_client.py Outdated Show resolved Hide resolved
mne_realtime/lsl_client.py Show resolved Hide resolved
mne_realtime/lsl_client.py Show resolved Hide resolved
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

@teonbrooks looks good to me, feel free to merge if you're happy!

@teonbrooks teonbrooks merged commit 54fc8e6 into mne-tools:main Apr 11, 2023
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