mdempsky/maligned
View on GitHub ↗ ★ 535 Go
Tool to detect Go structs that would take less memory if their fields were sorted.
3 mentions on Hacker News by 3 people: 1 story, 2 comments · first 2019-04-03 · latest 2022-01-10
20082026
-
The standard way to check for these was https://github.com/mdempsky/maligned . It is now deprecated in favour of https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fie... . You can now check for these using go vet: go install…
comment by jbub · 2022-01-10 · in Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020) -
This can help: https://github.com/mdempsky/maligned
comment by meling · 2022-01-10 · in Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020) -
▲ 1
Maligned: Detect Go structs that would take less memory if alignedstory by pjf · 2019-04-03 · 0 comments