Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I don't do IRC, so I'm asking here instead. Besides, I gather that this will be interesting information, for other people who are interested in this project.

    How do you propose we fix this?

    • Use Archive::Tar::Streamed []. This can be done by changing the code in

    • Don't use Archive::Tar::Streamed [], but instead, incorporate its code into (The module code is quite short.)

    • Modify Archive::Tar [] so it includes the functionality of Archive::Tar::Streamed []

    • Fix Archive::Tar [] so it transparently includes the desired functionality: so when it extracts the files, it simply copies the bytes from the original tar archive to the new file, and they never get fully loaded into memory. could remain unchanged if this is the default in Archive::Tar [], which I prefer, or if the default behaviour in Archive::Tar [] remains unchanged (for backward compatibility), simply add a new option flag in the parameters in some method call, so it avoids loading the entire archive into memory.

    I personally prefer the latter.

    • Archive::Tar itself ALREADY contains the required functionality according to Jos, in the ->iter interface.

      What's missing is that Archive::Extract isn't actually using the streaming API, it's using the in-memory API.

      So Archive::Extract needs to recognise when the Archive::Tar version is high enough to support ->iter and then preferentially use that.

      • Urm, yeah, apparently I succeeded in skipping over one of the modules: Archive::Extract []: I immediately forgot about it after I read your post, likely because I think I wouldn't have done it that way.

        Well, anyway, it's clear now what you expect to be done.