View Single Post
Old 01-11-2020, 01:58 PM   #30
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,769
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
It also includes rules like this:
Code:
div.east_right{width:40% !important;clear:both;float:right;margin-top:0em;margin-bottom:1em;display:inline-block}
That's important because KOReader supports floats, while other CREngine implementations don't yet afaik.

Besides that KOReader defaults to proper kerning, which is slower, it implements RTL, which may be relevant if there's Hebrew in the document, and it more correctly CSS selectors with + (I'm not sure if that makes it any slower otoh but there are an awful lot of + selectors in there which isn't exactly recommended for document performance).

On a stress test like this, it could unearth some logical flaw in the support for an extra CSS selector.

Anyway, as stated disabling various features would greatly improve the speed. Font kerning possibly good, but definitely not best. Render mode, probably best to go with legacy or flat. And indeed one might consider turning off embedded styles completely. (Basically either make those the default by long pressing or pre-make an SDR.)

I forget, was that file ever reduced to a test case?
Frenzie is offline   Reply With Quote