Open brainchild0 opened 4 years ago
@brainchild0 can you post any EPUB or CBZ files to test this with? Thanks.
I can reproduce equally well using any set of EPUB documents.
I have submitted a few in the public domain.
Naturally, small documents lack the adverse affect on resources that prompted the creation of the issue, but the behavior to test is nevertheless the same in every case.
Issue
Xreader apparently writes exploded copies of all EPUB and comic book archive files in recent files list into
/tmp
upon startup, unless those copies already exist.Steps to reproduce
/tmp/xreader-*
.Expected behaviour
Xreader waits for the user to open a file.
Creation of temporary files is limited to the minimal necessary amount for a particular operation, and those files are deleted as soon as they become unneeded.
Actual behavior
Xreader scans the recent files list and writes exploded copies of all archive files to temporary files, regardless of their size and number, before opening any window, or providing any feedback to the user.
This behavior creates an enormous penalty in speed, disk usage, and usability.