Thread: WebBook Format
View Single Post
Old 04-23-2018, 08:34 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by DNSB View Post
The same parsing algorithm that has people concerned about it's ability to parse in linear time? The adoption agency algorithm is a horrible example of good intentions with it's nested loops that can go quadratic. Going by some of your posted code, you are aware of this issue.
The tradeoff of increased parsing time for greater robustness is both perfectly natural and perfectly justified. And I fixed my issues with HTML 5 parsing speed by writing https://github.com/kovidgoyal/html5-parser
kovidgoyal is offline   Reply With Quote