HomePhorge

Cnode improvements and fixes

Description

Cnode improvements and fixes

  • Refactor tree building to not be recursive, so it doesn't segfault

because of running out of stack space on really big files

  • Fix Cnode crashing on <!----> due to myhtml_node_text returning a

null pointer

  • Fix Cnode benchmarks

Cnode benchmarks on master:

benchmark name                iterations   average time
wikipedia_hyperlink.html 97k         200   7817.54 µs/op
w3c_html5.html 131k                  100   13872.61 µs/op
github_trending_js.html 341k          50   30911.76 µs/op

This branch:

benchmark name                iterations   average time
wikipedia_hyperlink.html 97k         500   7045.92 µs/op
w3c_html5.html 131k                  200   10438.43 µs/op
github_trending_js.html 341k         100   23686.21 µs/op

Details

Provenance
rinpatchAuthored on Oct 23 2019, 1:22 PM
Parents
R16:18593ba4109c: fix memory leak in c_src/myhtml_worker.c, free tag_ns_buffer if allocated for…
Branches
Unknown
Tags
Unknown

Event Timeline