Mounting tar archives as a filesystem in WebAssembly (jeroen.github.io)

24 points by datajeroen 3 hours ago

3 comments:

by Ecco 29 minutes ago

How about using a format that has actually been designed to be a compressed read-only filesystem? Something like a SquashFS or cramfs disk image?

by stingraycharles 5 minutes ago

Sometimes (read: very often) you can’t choose the format. Obviously if squashfs is available that is a better solution.

by sillysaurusx an hour ago

Only peripherally relevant, but also see Ratarmount: https://github.com/mxmlnkn/ratarmount

It lets you mount .tar files as a read only filesystem.

It’s cool because you basically get random access to the tarball without paying any decompression costs. (It builds an index saying exactly where so-and-so is for every file.)

Data from: Hacker News, provided by Hacker News (unofficial) API