TOC with "#HREF" syntax makes opening the ePUB extremely slow. With large enough TOC files this will take a long time or even cause the reader to crash.
Can calibre stop inserting the "#HREF" tag for the top level capters or add a switch to disable the #HREF for the top level chapters from the TOC.NCX file.
I've noticed a big performance hit every time I try to open up an ePUB book and use the TOC. You mentioned on a different thread it was due to the #HERF.
Okay I've done a few test to see how true this is and if there is a good solution to resolve this.
Attached is 3 files
(unmodified calibre generated TOC)
(ALL #HREF removed from all URL in the toc.ncx file)
(Only the top level chapters have the #HREF removed, sub chapters have the #HREF)
Measured time to the TOC from an ePUB book created from calibre.
I also ran the same test on Jeff Carver's ePUB book from Fictionwise. The default book took 8sec to load.
When I removed the #HREF from the toc.ncx file the load time was instant.
Note: I did not test 3 level TOC items.
There is a HUGE
performance increase by just removing the the #HREF URL path from top level TOC. While there still is a hit on sub toc they are small and tolerable.