Giter Club home page Giter Club logo

Comments (7)

siddharthab avatar siddharthab commented on September 21, 2024

@mattmoor

from containerregistry.

mattmoor avatar mattmoor commented on September 21, 2024

I'm not sure a lower level would help appreciably. Python gzip is just tremendously slow.

We could consider making this take a kwarg to control whether compressed or uncompressed blobs are emitted (or both). WDYT?

from containerregistry.

siddharthab avatar siddharthab commented on September 21, 2024

uncompressed vs compressed would be best, but on my cursory glance at the code, it looks like a non-trivial change to skip compression altogether.

from containerregistry.

mattmoor avatar mattmoor commented on September 21, 2024

Yeah, this is a little trickier than I thought, mostly because of how oriented the DockerImage interface is around having the layer digests, which we basically don't have or need.

The good news is that FromTarball already lazily generates the manifest, so if we are careful we should be able to extend the interface to achieve what you want. My current thinking looks something like:

  1. Extend DockerImage to expose a diff_ids() member that returns the list of diff_ids from the config_file() (which we can access without producing the manifest() in FromTarball.
  2. Extend the DockerImage interface to allow fetching uncompressed_blob by diff_id.
  3. When v2_2_save.fast is called to emit uncompressed stuff, then bypass this loop completely and have another that uses the above.

WDYT?

from containerregistry.

siddharthab avatar siddharthab commented on September 21, 2024

Looks like it should work.

from containerregistry.

siddharthab avatar siddharthab commented on September 21, 2024

What do you think about #28?

Not quite what we discussed but looks simpler and does only what's needed.

from containerregistry.

mattmoor avatar mattmoor commented on September 21, 2024

I believe this should be resolved by outlining the gzip entirely

from containerregistry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.