Quote:
Originally Posted by KevinH
The only alternative is to tie modification time to sha256 checksum instead of path to file in epub. If we do it that way, just moving or renaming a file would not impact its modification date in the new zip. I will give that a try to see if that is more useful.
|
Pretty pretty please, I hope that is possible. I would otherwise need to be conscious that first I would restructure to Sigil norm before any other changes. That is not so bad but if it isn't too much effort, other would be great.
I haven't had a chance to look much at the code yet recently I've been thinking I will start more. I do not know if other file metadata is somehow kept track of. Perhaps such would help for possible future features. I recall, though I do not know if such has changed, that when adding links to IDs (I think it was) that there was some delay for larger EPUBs. In such cases, I have a fair amount of files with thousands or tens of thousands of IDs, common with academic works from certain publishers. Maybe the indexing of Sigil could grow over time such that more becomes possible. I was thinking of navigation features such as goto (id, text content, or title). Perhaps you are used to such in whatever editor or IDE you use; such would too be nice someday for Sigil.
When you say restructuring moves files, I'm not sure if that means such is really what happens in the temp folder. If so, I do not know if that is necessary over moving the file. Would such be less efficient? In my case of APFS, disk usage and battery life wouldn't be affected though unsure about NTFS, ext4, or other Linux file systems.
Of some informal testing of speed of opening an EPUB, with one with ~6000 images, 13 seconds vs 8.
edit: I'd guess restructuring to Sigil norm also recalculates checksums. Of a somewhat medium sized file, 1200 XHTML and ~250 images, restructuring took a while. I didn't time it but it seemed like half a minute or more. You may want to make such a preference. A faster hashing algorithm too might well be worth investigating if possible.