Seer of the tapes! Knower of the episodes!

  • 4 Posts
  • 753 Comments
Joined 3 years ago
cake
Cake day: July 3rd, 2023

help-circle




  • Pretty fucking good, actually. Which alarms me.

    You see I’ve observed that my life seems to get better when the rest of society gets worse, and vice versa. Not because of anything I do, it’s just how my luck works. When the economy tanks, I’m financially secure; when the economy is running hot, I’m broke. My wellbeing seems inversely correlated to the wellbeing of society at large.

    And I’m doing great. Better than ever, actually. Hence my alarm: according to the inverse wellbeing law, shit’s about to get real.






  • A .tar archive is basically only the files cat’ed together, with a header and index added, right?

    Tar does not include an index. It’s just the headers and data cat’ed together. You have to read from the beginning of the archive until you find the file you want. This is exacerbated if the archive is also gzipped, since you have to decompress all the files leading up to the one you want, as opposed to skipping over them as you could do in an uncompressed tar archive.

    So why is there no archive format that just cat’es the compressed files together?

    That’s essentially what a zip archive does. Each file is compressed separately and cat’ed together with uncompressed headers in between. Also zip archives do have an index which is what allows for random access and easy changes. The downside is that the compression ratio of a zip archive can be worse than a tar.gz archive.