Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deep dive into sync.Pool

moricho
February 07, 2020

Deep dive into sync.Pool

golang.tokyo#29 20min

moricho

February 07, 2020
Tweet

More Decks by moricho

Other Decks in Programming

Transcript

  1. ABOUT ME ஑ా ৿ਓ(@_moricho_) - ܚጯٛक़େֶ ཧ޻ֶ෦ - Go, Kubernetes,

    ... - AbemaTV, ϦΫϧʔτ, BASE, … - ࠷ۙͷझຯɿϑΥϯτΛோΊΔ
  2. ࢀߟ ɾCA.go #1 Ͱ sync.Pool ʹ͍ͭͯ஻Γ·ͨ͠ #ca_go
 ɾgolangͰsync.PoolΛ࢖ͬͯলίετˍߴ଎Խ - Carpe

    Diem
 ɾGoݴޠͷLoggerʮzapʯ͸Կނߴ଎ʹߏ଄Խ͞ΕͨϩάΛग़ྗ͢Δࣄ͕ग़དྷΔͷ͔ʛגࣜձࣾCA Wise ɾGo: Understand the Design of Sync.Pool - A Journey With Go - Medium
 ɾsrc/sync/pool.go - The Go Programming Language
 ɾsync: use lock-free structure for Pool stealing · golang/go@d5fd2dd · GitHub
 ɾsync: smooth out Pool behavior over GC with a victim cache · golang/go@2dcbf8b · GitHub ɾGo 1.13த sync.Pool ੋ೗ԿႪԽత? | ୔໠
 ɾGO: sync.Pool తൌགྷ༩ԋࣉ - Goე࿽ᇏ໓ຩ - Golangதจࣾ۠