当前位置:网站首页>4、 High performance go language release optimization and landing practice youth training camp notes
4、 High performance go language release optimization and landing practice youth training camp notes
2022-07-07 07:24:00 【A low-key horse】
High performance Go Language distribution optimization and implementation practice | Youth Camp notes
This is my participation 「 The third youth training camp - Back end field 」 The third part of note creation activities 4 Notes
Memory aspect
One 、 Automatic memory management
Concept :
Mutator: Business thread , Assign new objects , Modify the object pointing relationship ( Created goroutine)
Collector:GC Threads , Find the living object , Reclaim memory space of dead objects
Serial GC: only one collector
Parallel GC: Support multiple collectors Recycled at the same time GC Algorithm
Concurrent GC:mutator(s) and collector(s) It can be executed at the same time


GC:
GC Algorithm : Security 、 Throughput rate 、 Pause time 、 Memory overhead
Track garbage collection :
- Tag root object
- Mark reachable objects
- Clean up unreachable objects
- Use different marking and cleaning strategies according to the life cycle of the object
generational GC:
Age : experienced GC The number of times
Purpose : For young or old people of different ages , Develop different strategies GC Strategy , Reduce overall memory management overhead

Reference count :
- Each object has the number of references associated with it , Greater than 0 It's survival
- The disadvantage is that ring data structures cannot be recycled 、 Maintaining reference counts is expensive
Two 、Go Memory management and optimization
Memory allocation :
Block
cache
Management optimization
go Memory allocation
- Actual optimization plan :Balanced GC
Compiler optimization
One 、 Compiler and static analysis
Compiler structure :
Static analysis :
In process analysis 、 Interprocess analysis :
Two 、Go Compiler optimization
Function inlining :
Escape analysis :
Static analysis :
In process analysis 、 Interprocess analysis :
Two 、Go Compiler optimization
Function inlining :
Escape analysis :
Beast mode
边栏推荐
- MIPS uclibc cross compile ffmpeg, support g711a encoding and decoding
- IP address
- 外包干了四年,废了...
- 修改Jupyter Notebook文件路径
- Non empty verification of collection in SQL
- 聊聊异步编程的 7 种实现方式
- Tumor immunotherapy research prosci Lag3 antibody solution
- . Net core accesses uncommon static file types (MIME types)
- Databinding exception of kotlin
- How to reduce inventory with high concurrency on the Internet
猜你喜欢

Introduction to abnova's in vitro mRNA transcription workflow and capping method

95后CV工程师晒出工资单,狠补了这个,真香...

Leetcode t1165: log analysis

虚拟机的作用

. Net core accesses uncommon static file types (MIME types)

Basic process of network transmission using tcp/ip four layer model

FPGA course: application scenario of jesd204b (dry goods sharing)

RuntimeError: CUDA error: CUBLAS_ STATUS_ ALLOC_ Failed when calling `cublascreate (handle) `problem solving

URP - shaders and materials - light shader lit

Fast quantitative, abbkine protein quantitative kit BCA method is coming!
随机推荐
【leetcode】1020. Number of enclaves
Tumor immunotherapy research prosci Lag3 antibody solution
Introduction to abnova's in vitro mRNA transcription workflow and capping method
Fast quantitative, abbkine protein quantitative kit BCA method is coming!
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
計算機服務中缺失MySQL服務
Answer to the second stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
Multidisciplinary integration
Pass child component to parent component
Software acceptance test
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
详解机器翻译任务中的BLEU
At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it
How to reduce inventory with high concurrency on the Internet
Fullgc problem analysis and solution summary
After the promotion, sales volume and flow are both. Is it really easy to relax?
Several important steps to light up the display
Network foundation - header, encapsulation and unpacking
外包干了四年,废了...
Blue Bridge Cup Netizen age (violence)