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

perf: avoid redundant data when saving Rotator models #229

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

nicrie
Copy link
Contributor

@nicrie nicrie commented Sep 13, 2024

This PR improves disk space efficiency when saving the Rotator. Previously, the entire model, including its Preprocessor and Whitener, was saved twice -- once for the original model and once for the Rotator. This resulted in redundant storage, particularly for the Whitener, which can be large due to its transformation matrix.

To address this, the PR no longer saves the entire original model. Instead, it creates a DataContainer for the original model and only copies the necessary DataArrays required by the Rotator, avoiding duplicate data.

@nicrie nicrie changed the title perf(rotator): reduce disk space of saved Rotator models perf(cross): avoid redundant data when saving Rotator models Sep 13, 2024
@nicrie nicrie changed the title perf(cross): avoid redundant data when saving Rotator models perf: avoid redundant data when saving Rotator models Sep 13, 2024
@nicrie nicrie merged commit e2525bb into develop Sep 13, 2024
6 checks passed
@nicrie nicrie deleted the reduce-disk-space-saved-rotator-cross-models branch September 13, 2024 14:07
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