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
  • go
  • src
  • pkg
  • encoding
  • binary
  • binary.go
Find file BlameHistoryPermalink
  • Rob Pike's avatar
    encoding/binary: speed up writing slices of integers · c0465d03
    Rob Pike authored Aug 09, 2013
    Simple approach. Still generates garbage, but not as much.
    
    benchmark                        old ns/op    new ns/op    delta
    BenchmarkWriteSlice1000Int32s        40260        18791  -53.33%
    
    benchmark                         old MB/s     new MB/s  speedup
    BenchmarkWriteSlice1000Int32s        99.35       212.87    2.14x
    
    Fixes #2634.
    
    R=golang-dev, crawshaw
    CC=golang-dev
    https://golang.org/cl/12680046
    c0465d03
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7