Format is a major factor, and complexity can be a bigger one - e.g. religious texts with concordances are problematic as are dictionaries. I've converted some very large plain text documents to epub in a few minutes.
Also see first couple of topics in ==>>
E-book format conversion
BR