WeSearch

Go Garbage Collection: Tri-Color Mark & Sweep, Write Barriers & STW Optimization

·8 min read · 0 reactions · 0 comments · 10 views
#go#garbage collection#performance#algorithms#computerscience
Go Garbage Collection: Tri-Color Mark & Sweep, Write Barriers & STW Optimization
⚡ TL;DR · AI summary

The article discusses the evolution of garbage collection in the Go programming language, highlighting its transition from a stop-the-world approach to a concurrent model. It explains the tri-color mark and sweep algorithm introduced in Go 1.5, which allows garbage collection to occur without pausing the application. This improvement addresses latency issues and enhances performance in Go applications.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 2415836) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } James Lee Posted on May 19 Go Garbage Collection: Tri-Color Mark & Sweep, Write Barriers & STW Optimization #algorithms #computerscience #go #performance Go Runtime Internals: Scheduler, Memory, GC & Performance (7 Part Series) 1 Go Performance Optimization: pprof, Flame Graphs & Hotspot Profiling 2 Go Heap Memory Allocation: tcmalloc, Mutator/Allocator & Multi-Level Cache ... 3 more parts...

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)