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

Adds static readout buffer #85

Merged
merged 2 commits into from
Jan 20, 2022
Merged

Adds static readout buffer #85

merged 2 commits into from
Jan 20, 2022

Conversation

darrylmasson
Copy link

@darrylmasson darrylmasson commented Jan 20, 2022

During readout, at least two allocations are made, first into temporary buffers and then into one concatenated buffer sent downstream. The readout servers have considerably more memory than the combined digitizers they read, so there's no reason the digitizer class can't allocate itself a permanent readout buffer with some extra space to replace the temporary buffers, and then just reuse this block rather than reallocating large blocks each and every time we read a single photon. This PR adds this.

@darrylmasson darrylmasson merged commit a50c6e2 into master Jan 20, 2022
@darrylmasson darrylmasson deleted the ro_buffer branch January 20, 2022 10:51
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.

1 participant