11-05-2009, 03:19 AM | #1 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
ePub conversion capacity limits?
I seem to be approaching some sort of "limit" in doing Mobi to ePub conversions in Calibre. A "normal" size novel converts in a few seconds, but large books seem to take exponentially longer and longer. I've recently created a number of large "omnibus" editions of books:
A Mobi book with 8MB of HTML source took 9 minutes to convert. A Mobi book with 10MB of HTML source took 20 minutes to convert. This is on a fast, modern, PC with a dual-core CPU and 4GB RAM. Given that both the books have well-formed HTML, and short chapters, is there any reason for this seemingly exponential rise in conversion time? I would have expected that a 10MB book would take 10x as long to convert as a 1MB book, but it's way, way, longer than that. Is there any absolute upper limit to the largest book that Calibre can convert? |
11-05-2009, 04:52 AM | #2 |
Addict
Posts: 343
Karma: 1010002
Join Date: Apr 2008
Location: London. UK
Device: Marvin Reader on iPad Air (via Calibre)
|
FWIW I encountered the same thing when I recently did a bulk convert of a whole bunch of LIT files to ePub. Buried in the middle of them was the Encarta Pocket Dictionary and I had to cancel that after it had been running for 20 minutes or so. All the others were very quick. Perhaps it is related to number of chapters, or references?
|
Advert | |
|
11-05-2009, 10:33 AM | #3 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the bottleneck in conversion is CSS parsing. MOBI input files can sometimes generate a lot of CSS that has to later be parsed. Unfortunately, the only ready to use CSS parsing library I could find uses regexps to parse CSS and is really slow, it's time goes up exponentially with the size of the CSS.
|
11-06-2009, 02:55 AM | #4 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Thanks for explaining that, Kovid. It's not a problem - I've not yet created a Mobi book that's so large that it won't convert - but it's nice to understand the reason for it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub Conversion | jcwald | Calibre | 3 | 09-10-2010 08:38 AM |
Epub 1.0.5 Conversion | JenJ | Introduce Yourself | 7 | 08-07-2010 08:24 AM |
epub conversion error | booksonthemove | Calibre | 3 | 02-15-2010 10:21 PM |
Help with conversion from PDF to EPUB | Fizz | Calibre | 5 | 10-25-2009 11:48 AM |
ePub creation / conversion | philippd | ePub | 8 | 06-04-2008 04:23 AM |