View Single Post
Old 06-21-2009, 11:54 AM   #40
Tuna
Zealot
Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.
 
Posts: 114
Karma: 325
Join Date: May 2009
Device: Cool-ER
Quote:
Originally Posted by netseeker View Post

Agreed, storing rendered versions of a file would be the wrong way.
Let me be clear that I would never suggest storing rendered versions - that was a misunderstanding on kovid's part. My point was that files can be pre-parsed and indexed to support efficient rendering. At the base level, indexing can involve both flattening the parse tree (eliminating those pesky CSS selectors) and providing efficient search spaces for locating document parts.

Page indexing be done separately and needn't be expensive - consider that you're talking about a few hundred indices for most books - so even if you allow for (say) a couple of dozen most likely combinations of font sizes, line spacing and margin settings your document index need not be more than a few kilobytes in size. That's hardly a high price in return for instant page turns and accurate next/previous page behaviour.
Tuna is offline   Reply With Quote