Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
You need to sign in or sign up before continuing.
  • go
  • src
  • pkg
  • exp
  • html
  • node_test.go
Find file BlameHistoryPermalink
  • Nigel Tao's avatar
    exp/html: change a node's children from a slice to a linked list. · 13cf2473
    Nigel Tao authored Aug 31, 2012
    Also rename Node.{Add,Remove} to Node.{AppendChild,RemoveChild} to
    be consistent with the DOM.
    
    benchmark                      old ns/op    new ns/op    delta
    BenchmarkParser                  4042040      3749618   -7.23%
    
    benchmark                       old MB/s     new MB/s  speedup
    BenchmarkParser                    19.34        20.85    1.08x
    
    BenchmarkParser mallocs per iteration is also:
    10495 before / 7992 after
    
    R=andybalholm, r, adg
    CC=golang-dev
    https://golang.org/cl/6495061
    13cf2473
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7