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
  • runtime
  • plugin.go
Find file BlameHistoryPermalink
  • Keith Randall's avatar
    cmd/compile: optimize non-empty-interface type conversions · 5a75d6a0
    Keith Randall authored Jan 03, 2017
    When doing i.(T) for non-empty-interface i and concrete type T,
    there's no need to read the type out of the itab. Just compare the
    itab to the itab we expect for that interface/type pair.
    
    Also optimize type switches by putting the type hash of the
    concrete type in the itab. That way we don't need to load the
    type pointer out of the itab.
    
    Update #18492
    
    Change-Id: I49e280a21e5687e771db5b8a56b685291ac168ce
    Reviewed-on: https://go-review.googlesource.com/34810
    
    
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
    Reviewed-by: default avatarDavid Chase <drchase@google.com>
    5a75d6a0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7