@charliermarsh: I hadn't really thought of this before but it seems like we can use thin LTO for the instrumented binary we build durin…

X AI KOLs Following Tools

Summary

Charlie Marsh 发现可以在 PGO 过程中构建的插桩二进制文件上使用 thin LTO,从而显著缩短构建时间,且最终二进制文件的性能似乎不受影响。

I hadn't really thought of this before but it seems like we can use thin LTO for the instrumented binary we build during PGO, which significantly reduces build time at seemingly no performance cost in the final binary. https://t.co/qNCZjSUqk5
Original Article
View Cached Full Text

Cached at: 10/10/26, 02:54 PM

I hadn’t really thought of this before but it seems like we can use thin LTO for the instrumented binary we build during PGO, which significantly reduces build time at seemingly no performance cost in the final binary. https://t.co/qNCZjSUqk5

Similar Articles

Hooking into the Go Toolchain

Lobsters Hottest

A deep-dive tutorial on Go's -toolexec flag, showing how to intercept every step of the go build pipeline to time, rewrite, and instrument compilation, drawing on garble and otelc for real-world examples.

Leaving performance on the table

Lobsters Hottest

A technical blog post demonstrating how Profile-Guided Optimization (PGO) with LLVM can significantly improve binary performance beyond standard -O3 and LTO, using SQLite as a benchmark.