owned this note changed 5 years ago
Linked with GitHub

議程9 - Deep Dive into The Escape Analysis in Go - Jalex Chang

tags: GopherCon TW 2020 Agenda

歡迎來到 https://hackmd.io/@Golang-Taipei/GopherCon2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

[投影片連結]

https://slides.com/jalex-chang/go-esc

請從這裡開始

Introduction

Go's memory allocation & management are complex.

  • Heap
  • Stack frames

Heap vs Stack

stack is much faster than heap

The Escape Analysis

is a mechanism to automatically decide variable should be allocated in heap or not in compile time.

ESC - concept

How does ESC work

data-flow analysis

Conclustion

Do not abuse pointers, might cause escape-prone

Select a repo