MAK-Relic-Tool / Issue-Tracker

Central Bug Tracker / Issues Board for the MAK Relic Tool
0 stars 0 forks source link

EssenceFS slow due to reading in entire archive #38

Open ModernMAK opened 10 months ago

ModernMAK commented 10 months ago

This really only affects DoW 2, DoW 3, and Age of Empires 4, which contain large archives.

Opening these archives are slow, and cumbersome for doing 'peek' operations on archives, such as listing the file hierarchy, which only requires reading the Table of Contents, which is already being done.

Currently, SGA-Core V1.0.0 read the entire file and assembles the virtual file system in memory.

Lazily reading the file would be the preferred solution, which would seek to the underlying file handle. Perhaps memory-mapping the file to avoid random/constant seeks?

ModernMAK commented 6 months ago

Now outside of scope (#45), however, this should be fixed in the current relic.sga.core 2.0 branch