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

Add a new, more efficient storage mode for peaks data #24

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Conversation

jorainer
Copy link
Member

Store the full peaks data matrix as a BLOB. This has a performance advantage over the other storage modes.

- Add a new mode *blob2* to store peaks matrices as a BLOB into the database.
- Add parameter `peaksStorageMode` that allows selecting between the original
  way to store m/z and intensity values as BLOB (`peaksStorageMode = "blob"`)
  and the new one (`peaksStorageMode = "blob2"`).
- Change the default for data storage to the new *blob2* mode.
- Refactor the peaks data extraction function to improve speed.
- Use `xdr = FALSE` for `serialize()` calls to improve performance.
@jorainer jorainer merged commit b1a65a0 into main Jan 24, 2025
3 checks passed
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