There are several issues that may be intertwined
(1) higher compression ratios are likely to be slower
(2) larger content file sizes (longer textual chapters, larger images)
are likely to be slower
(3) more complex HTML (unnecessary <div/>s etc) is likely to be slower
(4) more complex CSS / javascript is likely to be slower
These can be checked by:
(1) Uncompressing the epub (if necessary chang .epub to .zip so standard
zip tools will work) and recompessing it twice, once with the -9 option
(maximum compression) once with -0 option (no compression)
(2) Uncompressing the epub, scaling down the images and recompressing
(probably need to recompress the original)
(3) Uncompressing, running through jtidy (or similar) and recompressing.
(4) Uncompressing, stripping out the files and recompressing.
cheers
stuart
On 24/04/12 08:38, Pablo Rodríguez wrote:
> Hi there,
>
> I got an e-reader and one of the books I wanted to read was the TEI Lite
> Guidelines (generated from
> http://www.tei-c.org/release/xml/tei/custom/odd/teilite.odd at
> http://www.tei-c.org/ege-webclient/).
>
> Everything works fine, except that the TEI Lite ePub file takes longer
> to navigate in the e-reader. This is specially noticeable when you go to
> the next page beginning a new section. In this case it takes more than
> 10 seconds, when going to the next page only takes about a second in
> other files.
>
> I experienced this issue for the first time with the Guidelines.epub. I
> thought it was caused by the big size of the archive. But after I
> experienced the same issue with teilite.epub, I thought it might be the
> way ePub files are generated from TEI files.
>
> Comparing two files: teilite.epub and another bigger file that works
> fine, gives the following results:
>
> teilite.epub contains 35 files. Compressed size is 314.2KB and
> uncompressed size is 2.8MB, being the compression ratio almost 11.06%.
>
> http://www.feedbooks.com/book/4960.epub contains 128 files. Compressed
> size is 2.3MB and uncompressed size is 6.7, being the compression rate 35%.
>
> The higher compression rate might be the culprit, although I experience
> the problem also with other files than have a much lower compression
> rate
> (https://code.google.com/p/epub-samples/downloads/detail?name=accessible_epub_3-20120301.epub).
>
> I don't know what is wrong here. Does anyone have a clue? (I guess I
> won't be the only one who is experiencing this.)
>
> Many thanks for your help,
>
>
> Pablo
|