golang㧠p := new(Type) 㨠p := &Type{} ã®ä½¿ãåãã£ã¦ã©ãããã¹ãã ãã? â MURAOKA Taro (@kaoriya) 2017å¹´4æ12æ¥ ãã¡ãã®ãã¤ã¼ãã«å¯¾ãã¦ã以ä¸ã®ãã³ãçµæãç´¹ä»ããã¦ãã¾ããã Goè¨èªã®ãã¼ãã«ç¢ºä¿ãããã¼ã¿ã®åæåã³ã¹ãã«ã¤ãã¦èª¿ã¹ã¦ã¿ã ãããhnakamur2ãããè¨åãã¦ããããã«ã ããã¯Go1.2.2æã®çµæã ãã®å¾ãGoã®ã³ã³ãã¤ã©ãGoå®è£
ã«ãªã£ãããSSAãå°å
¥ããããã¨ã ä»ã®ã³ã³ãã¤ã©ã®å®è£
ã¯å½æã¨ã¯å
¨ãéããã®ã«ãªã£ã¦ãã¾ãã ã¨ããããã§ãç¾æç¹ã§ã®ææ°ã®ãã¼ã¸ã§ã³(Go1.8.1)ã§ãåæ§ã®æ¤è¨¼ããããªã£ã¦ã¿ã¾ããã æ¤è¨¼ã³ã¼ã æ¤è¨¼ã«ä½¿ç¨ããã³ã¼ãã¯Go1.2.2ã®ã¨ãã¨å
¨ãåããã®ã§ãã // alloc_overhead.go package main type containe
{{#tags}}- {{label}}
{{/tags}}