Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Getting the Most Out of Dead Code Elimination

GoLab conference via YouTube

Overview

Explore the intricacies of dead code elimination in Go during this 42-minute conference talk from GoLab. Dive deep into how the Go linker removes unused functions and learn about the more relaxed version of deadcode elimination triggered by specific reflection methods. Discover how to identify if the degraded version is being used through the `-dumpdep` flag output. Gain practical insights on avoiding problematic reflection methods without sacrificing functionality or backwards compatibility, illustrated through real-world examples from popular projects like Delve, Cobra, and Starlark. Enhance your understanding of Go's compilation process and optimize your code for better performance and smaller executables.

Syllabus

Getting the most out of dead code elimination - Alessandro Arzilli

Taught by

GoLab conference

Reviews

Start your review of Getting the Most Out of Dead Code Elimination

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.