Skip to content

Split pkg/chunked.ZstdCompressor into a separate subpackage#972

Merged
giuseppe merged 1 commit intocontainers:mainfrom
mtrmac:zstd-compressor-deps
Jul 26, 2021
Merged

Split pkg/chunked.ZstdCompressor into a separate subpackage#972
giuseppe merged 1 commit intocontainers:mainfrom
mtrmac:zstd-compressor-deps

Conversation

@mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jul 23, 2021

containers/image/pkg/compression depends on that function, so it's highly undesirable for it to drag in all of containers/storage.

So, move it into a separate subpackage, along with its exclusive dependency tree.

Code that is called both from the new pkg/chunked/compressor and the original pkg/chunked has been moved into pkg/chunked/internal , so that we don't expose any new public API. That move was made purely mechanically without any concern for conceptual consistency, to minimize the size of the dependency (and not to spend time on that until the concept is proven to be useful).

Should not change behavior.

containers/image/pkg/compression depends on that function, so it's
highly undesirable for it to drag in all of containers/storage.

So, move it into a separate subpackage, along with its exclusive
dependency tree.

Code that is called both from the new pkg/chunked/compressor
and the original pkg/chunked has been moved into pkg/chunked/internal ,
so that we don't expose any new public API. That move was made
purely mechanically without any concern for conceptual consistency,
to minimize the size of the dependency (and not to spend time on
that until the concept is proven to be useful).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac force-pushed the zstd-compressor-deps branch from 7945b57 to 92b63ea Compare July 23, 2021 19:44
@rhatdan
Copy link
Member

rhatdan commented Jul 24, 2021

/approve
LGTM

@rhatdan
Copy link
Member

rhatdan commented Jul 26, 2021

@giuseppe PTAL

@rhatdan
Copy link
Member

rhatdan commented Jul 26, 2021

@vrothberg @saschagrunert @nalind PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@giuseppe giuseppe merged commit e1752f8 into containers:main Jul 26, 2021
@mtrmac mtrmac deleted the zstd-compressor-deps branch July 26, 2021 16:03
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.

3 participants