diskfs / go-diskfs

MIT License
494 stars 112 forks source link

squashfs: factor read only OpenFile into Open method on directory entry #204

Closed ncw closed 8 months ago

ncw commented 8 months ago

This enables us to open the file directly from the directory listing which saves doing another directory traversal to find it again.

This uses a simple Open method modeled on the one in the zip archive File.Open

When extracting all the entries from the archive this makes a significant performance improvement as re-reading all the directory entries from the root is quite expensive.