go-size-analyzer

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Go developers can now inspect exactly what makes their compiled binaries large, directly in a browser, and shrink them, Datadog reports cutting its Agent binaries by up to 77%.

Read this as

A developer tool called go-size-analyzer shows what makes a compiled Go program big. It draws a colorful treemap, a set of nested rectangles sized by how much space each part takes, breaking a binary into standard library packages, your own code, and debug data. Simon Willison tested it on his 8.1MB Showboat tool. Anyone building Go software can use it to find and cut wasted space.

Binary size drives download, deployment and memory costs for anyone shipping Go software. go-size-analyzer, linked from a Datadog engineering post that cut its Agent Go binaries by up to 77%, lets teams see exactly where those megabytes go. It runs locally or in a browser via WebAssembly at gsa.zxilly.dev, so no installation is needed. Teams with bloated binaries gain a free, immediate diagnostic.

go-size-analyzer parses compiled Go binaries and renders a treemap of size by package and section. It runs locally or compiled to WebAssembly at gsa.zxilly.dev. Willison's 8.1MB macOS Showboat binary showed large DWARF debug sections (e.g. __zdebug_line at 404.44 KB), standard library packages like net/http and crypto/tls, and main packages. It surfaced via Datadog's post on reducing Agent Go binary sizes by up to 77%.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

go-size-analyzer Showboat gsa.zxilly.dev Datadog Go WebAssembly

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading