当前位置:网站首页>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
边栏推荐
- The currently released SKU (sales specification) information contains words that are suspected to have nothing to do with baby
- A slow SQL drags the whole system down
- Outlier detection technology of time series data
- Example of Pushlet using handle of Pushlet
- [explanation of JDBC and internal classes]
- Chinese and English instructions prosci LAG-3 recombinant protein
- Several important steps to light up the display
- Initial experience of teambiion network disk (Alibaba cloud network disk)
- Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
- Basic process of network transmission using tcp/ip four layer model
猜你喜欢
L'étape avancée du pointeur de langage C (haut de gamme) pour l'enroulement des cocons
How to reduce inventory with high concurrency on the Internet
Introduction to abnova's in vitro mRNA transcription workflow and capping method
Pass child component to parent component
子组件传递给父组件
The currently released SKU (sales specification) information contains words that are suspected to have nothing to do with baby
Kuboard can't send email and nail alarm problem is solved
FPGA course: application scenario of jesd204b (dry goods sharing)
Academic report series (VI) - autonomous driving on the journey to full autonomy
[semantic segmentation] - multi-scale attention
随机推荐
FullGC问题分析及解决办法总结
mips uclibc 交叉编译ffmpeg,支持 G711A 编解码
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
sql中对集合进行非空校验
修改Jupyter Notebook文件路径
PostgreSQL source code (60) transaction system summary
Calculus key and difficult points record part integral + trigonometric function integral
MySQL service is missing from computer service
Sqlmap tutorial (IV) practical skills three: bypass the firewall
C language (high-level) data storage + Practice
Détailler le bleu dans les tâches de traduction automatique
弹性布局(二)
云备份项目
Common function detect_ image/predict
Sword finger offer high quality code
Stack Title: nesting depth of valid parentheses
Special behavior of main function in import statement
MySQL binlog related commands
IP address
深度学习花书+机器学习西瓜书电子版我找到了