<h1><center> Modernizing Grand Central Dispatch Usage(9) </center></h1> ###### tags: `πŸ’» WWDC μŠ€ν„°λ””`, `πŸ’» TIL`, `GCD` ###### date: `2024-01-11T15:12:33.284Z` > [color=#724cd1][name=데릭] > [Modernizing Grand Central Dispatch Usage - wwdc17](https://developer.apple.com/videos/play/wwdc2017/706/) > WWDC 2017 Session 쀑 ν•˜λ‚˜μΈ `Modernizing Grand Central Dispatch Usage`에 λŒ€ν•΄ μ•Œμ•„λ³΄μž # κ°œμš” > 43:02λΆ€ν„° λ‹€μ‹œ μ‹œμž‘μ΄λ‹€. (8)μ—μ„œλŠ” No Mutation Past Activation에 λŒ€ν•΄ ν•™μŠ΅ν–ˆλ‹€. ## Protecting the Target Queue Hierarchy ![스크란샷 2024-01-11 22.06.27](https://hackmd.io/_uploads/B1p0DwTda.png) - Build your queue hierarchy bottom to top - Opt into "static queue hierarchy" ![스크란샷 2024-01-11 22.07.24](https://hackmd.io/_uploads/BJLGdv6OT.png) ## Finding proble spots ![스크란샷 2024-01-11 22.11.13](https://hackmd.io/_uploads/B1igtD6_a.png) re-target after activation event ν™œμ„±ν™” ν›„ μž¬νƒ€κ²ŸνŒ…λœ 이벀트λ₯Ό ν΄λ¦­ν–ˆμ„ λ•Œ ![스크란샷 2024-01-11 22.12.15](https://hackmd.io/_uploads/Hk9VKDaOp.png) λ©”μ„œλ“œλ₯Ό λ‘λ²ˆ ν΄λ¦­ν•˜λ©΄ Instrumentsμ—μ„œ λ¬Έμ œκ°€ λ°œμƒν•œ μ½”λ“œλ₯Ό 직접 ν‘œμ‹œν•œλ‹€. ![스크란샷 2024-01-11 22.12.54](https://hackmd.io/_uploads/Bklwtvp_p.png) Xcode둜 직접 이동할 수 μžˆλ‹€. ## Summary - Not going off-core is every more important - Size your work appropriately - Choose good granularity of concurrency - Modernize your GCD usage - Use tools to find problem spots