1. 01 Aug, 2020 1 commit
  2. 04 Nov, 2019 1 commit
  3. 23 Oct, 2019 1 commit
    • rinpatch's avatar
      Cnode improvements and fixes · 3a5f773c
      rinpatch authored
      - 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
      ```
      3a5f773c