Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow parsing of HTML tables with loaded cells #3991

Closed
defanor opened this issue Oct 24, 2017 · 4 comments
Closed

Slow parsing of HTML tables with loaded cells #3991

defanor opened this issue Oct 24, 2017 · 4 comments

Comments

@defanor
Copy link

defanor commented Oct 24, 2017

Attempting to parse HTML tables akin to those of HN comments takes the time that seems to grow exponentially as the amount of tr elements grows: here it takes about 4 seconds with 9 comments, 8 with 10, 16-18 with 11, etc. Empty tables don't have the same effect, apparently the inner elements contribute to that somehow.

Reproduction:

pandoc -f html -t html <(curl https://news.ycombinator.com/item?id=12274999)

Versions:

pandoc 1.19.2.4
Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.1, skylighting 0.1.1.5

The Glorious Glasgow Haskell Compilation System, version 8.0.1
@defanor
Copy link
Author

defanor commented Oct 24, 2017

Originally found while attempting to parse HTML documents (using pandoc as a library), so apparently it's a parsing issue -- not that of conversion or printing.

@jgm
Copy link
Owner

jgm commented Oct 24, 2017 via email

@jgm
Copy link
Owner

jgm commented Oct 24, 2017 via email

@jgm
Copy link
Owner

jgm commented Oct 24, 2017 via email

@jgm jgm closed this as completed in ebc801c Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants