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
  • database
  • sql
  • sql.go
Find file BlameHistoryPermalink
  • Julien Schmidt's avatar
    database/sql: preallocate list slice in Drivers() · 843fec1c
    Julien Schmidt authored Sep 30, 2019
    The required slice capacity is already known. Thus, preallocate a slice with the correct capacity before appending to it.
    
    Change-Id: I45ac2c5f1701caeb3dda20451d371713ae7e7365
    GitHub-Last-Rev: 2bf575be65e9a449322540270988eaf87cec4245
    GitHub-Pull-Request: golang/go#34602
    Reviewed-on: https://go-review.googlesource.com/c/go/+/197917
    
    
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    843fec1c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7