View Single Post
Old 01-15-2013, 11:04 PM   #2
sysKin
Connoisseur
sysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the end
 
sysKin's Avatar
 
Posts: 56
Karma: 31286
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
Dunno if I agree, without knowing more.

HTML is not split into lines so your example is missing the point. Rendering html is always a difficult process because the only way to see how the text flows is to ask the text rendering engine to render it, even if the result is known to be off-screen. Then, for each line, there's several extra reflows to figure out best hyphenation position, and then you can move to the next line.

I'm not saying there are no optimisations and other tricks, but:
- this is why epub is split into chapters
- modern web browsers also lock up for considerable time reflowing html
- "threads" is not just a label you slap on a program, and in fact on single-core hardware, interruptable code is probably better than multithreaded code
sysKin is offline   Reply With Quote