Giter Club home page Giter Club logo

go-tarfs's Introduction

Hi there ๐Ÿ‘‹

Check out some of my articles on dev.to and Medium.

Some of my talks (in french ๐Ÿ‡ซ๐Ÿ‡ท) are available on this Youtube playlist.

Cheers ๐Ÿป

go-tarfs's People

Contributors

adyatlov avatar allcontributors[bot] avatar cugu avatar ix64 avatar joelanford avatar nlepage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-tarfs's Issues

Bug: FS entries should not exist for global headers found in tar.

It looks like we inadvertently introduced a regression in v1.2.0. It no longer correctly handles opening a PAX global header.

We still correctly record the presence of the pax_global_header entry in the tarfs entries map. However e.reader() returns an error for it when calling tr.Next().

Here's a tar.gz that exhibits the regression: https://github.com/helm/examples/archive/refs/tags/hello-world-0.1.0.tar.gz

Memory optimization if reader is an `io.ReaderAt`

I've been a user of this library, and I find it really useful (thanks!).

However, I've noticed that the files within the tar are fully read into memory, even if the underlying reader supports io.ReaderAt. If the underlying reader does support io.ReaderAt, it seems like it would be a significant memory optimization to use io.SectionReader instead of bytes.Buffer, so that fs.FS operations could read file contents directly out of the reader.

Is this something that would be possible to explore in this library?

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.