Skip to content

v1.0.0

Choose a tag to compare

@ableinc ableinc released this 26 Apr 06:52
· 9 commits to main since this release

Lineup

Lineup is a desktop app that scans Go repositories and finds struct types that waste memory due to field padding. It shows you exactly which structs can be improved, how many bytes can be saved, and what the optimized field order looks like — without touching your source files.


What does it do?

Go aligns struct fields in memory according to their type's alignment requirements. When fields are ordered carelessly, the compiler inserts hidden padding bytes between them to satisfy alignment rules. Lineup detects this, computes the optimal field order, and tells you how much memory each struct is wasting.

No changes are made to your code. Lineup only reads and reports.

Windows Users: Please advise SmartScreen to trust this executable. macOS and Linux bundles are signed.