Skip to content

Feature Suggestion: Optimize handling of "Stored" (Uncompressed) entries to avoid unnecessary memory/disk caching #7

@crashGG

Description

@crashGG

Hi Dr. Peterson,
First of all, thank you for developing SimpleZipDrive! The current Hybrid Caching Engine is a very smart way to balance RAM usage and performance based on file size.I would like to suggest a minor optimization regarding how the engine handles "Stored" (uncompressed, 0% compression level) files within archives.The IssueCurrently, the engine strictly differentiates files by size. However, users often create large ZIP archives using the "Stored" method solely for convenient file bundling and archiving. Or some encoded files are difficult to compress and using store. For example, mkv, ps3 iso. Since these entries are completely uncompressed, they inherently support byte-level seeking and can be read directly from the source archive. Treating them like compressed files causes redundant overhead:Small Stored Files: Cached in-memory needlessly, consuming RAM.Large Stored Files (≥512 MB): Decompressed/copied to a temporary disk cache, causing severe and unnecessary disk I/O bottlenecks.The SuggestionInstead of relying solely on file size, could the Hybrid Caching Engine first check the compression method of the entry?If an entry is "Stored" (Compression Method == 0), SimpleZipDrive could implement a direct-read/streaming approach via standard file seeking, completely bypassing both the in-memory and temporary disk caches.This would dramatically improve performance and reduce resource consumption when browsing or extracting large archived bundles.Thank you for considering this optimization!
Best regards,crashGG.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions