[Okular-devel] md5 hash for annotation file name
Pino Toscano
pino at kde.org
Thu Sep 18 22:50:14 CEST 2008
Alle giovedì 11 settembre 2008, Markus Grabner ha scritto:
> Loading the file from a local hard disk takes considerably longer,
You are assuming whatever will load a document, will load it at once, while
there are file formats that can be read by chunk (eg TIFF, PostScript).
> so I'm
> not very much concerned about the hash computation time. However, the
> "readAll()" definitely has to be replaced by reading smaller chunks and
> processing them sequentially, that was just for the "proof of concept".
Reading the whole document by chunks or once at a single shot is basically the
same.
> > so reading up to 1MB as much would be much better imho.
>
> If an annotation refers to a typo on the last page of a huge document, and
> this gets fixed, the same annotation would still be displayed for the
> corrected file if the correction appears after the portion of the file for
> which the hash value is computed (at least for uncompressed formats such as
> PostScript).
Or, more than that, two documents could be the very same up to some size.
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20080918/37e9e92a/attachment.sig
More information about the Okular-devel
mailing list