Skip to content
Snippets Groups Projects
Commit 51c3b7c6 authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

compiler: only check whether struct or array types are big

    
    Fetching the size of a type typically involves a hash table lookup,
    and is generally non-trivial.  The escape analysis code calls is_big
    more than one might expect.  So only fetch the size if we need it.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/197699

From-SVN: r276187
parent df435456
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment