Use streaming ZIP extraction#38
Draft
hagenw wants to merge 1 commit into
Draft
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideSwitches model archive handling to use audbackend’s streaming ZIP extraction API for performance, and temporarily pins audbackend to a Git branch that provides this functionality. Sequence diagram for streaming ZIP extraction in get_archivesequenceDiagram
actor User
participant AudmodelBackend as Audmodel_backend.get_archive
participant BackendInterface as BackendInterface
participant Storage as Remote_storage
participant FS as Local_filesystem
User->>AudmodelBackend: load_model(version, path)
AudmodelBackend->>BackendInterface: enter backend context
activate BackendInterface
BackendInterface->>Storage: open_archive_stream(path, version)
Storage-->>BackendInterface: ZIP_stream
BackendInterface->>FS: get_archive(path, tmp_root, version, verbose)
FS-->>BackendInterface: files_extracted_to_tmp_root
deactivate BackendInterface
AudmodelBackend->>FS: move tmp_root to final root
FS-->>AudmodelBackend: root_ready
AudmodelBackend-->>User: model_loaded
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use streaming ZIP extraction from audeering/audbackend#279 to speed up downloading models (with a single worker).
Execution time to load
7289b57d-1.0.0(4.2 GB).Summary by Sourcery
Streamline model archive retrieval by leveraging backend-level streaming extraction instead of downloading and unpacking ZIP files locally.
Enhancements:
Build: