Quote:
Originally Posted by BobC
If you have ever played with a monolithic format such as FB2 where the book is just one long file you would understand why large files are a problem
|
If you use an event-based parser, you don't need excessive memory. All you need is to scan the file once, and build the lookup table. Formats actually optimized for portative devices, like MOBI or PDB, have those tables pre-built.
The actual reason EPUB needs segmentation, is a bad container format which doesn't allow random access, and the atrociously complex HTML+CSS+JS content format, which needs a DOM tree created just to make heads and tails of it.