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

Timestream serialization speed #103

Merged
merged 3 commits into from
Apr 18, 2023
Merged

Conversation

cnweaver
Copy link
Contributor

These changes roughly double the speed at which large amounts of integer timestream data can be serialized, and should provide much of that benefit to more common floating-point data, as well.

C. Weaver added 3 commits April 17, 2023 16:38
This is unnecessary as G3Frame protects all serialized data with a CRC, and removing it greatly decreases the time to serialize compressed waveforms.
This avoids pointless double conversion for several of the possible storage types.
@cnweaver cnweaver self-assigned this Apr 17, 2023
@cnweaver cnweaver requested review from arahlin and nwhitehorn April 17, 2023 21:26
Copy link
Member

@arahlin arahlin left a comment

Choose a reason for hiding this comment

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

Awesome! Does this by chance resolve @tskisner's issue with slow serialization?

We should put some thought into proper compression for the non-int32 types, and allow units other than Counts, but that's for a separate PR.

@cnweaver
Copy link
Contributor Author

I think @tskisner will have to speak to how useful this is for his purposes; as noted it doesn't directly do anything to help non-Counts data (and also only has an impact when compression is turned on), so it will depend on what he needs to store.

@cnweaver cnweaver merged commit 29c6842 into master Apr 18, 2023
@cnweaver cnweaver deleted the timestream-serialization-speed branch April 18, 2023 14:14
marius311 pushed a commit to marius311/spt3g_software_public that referenced this pull request Aug 15, 2023
---------

Co-authored-by: Tyler Natoli <tnatoli@amundsen.grid.uchicago.edu>
Co-authored-by: Alexandra Rahlin <arahlin@users.noreply.github.com>
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.

2 participants