Saving a Third of Our Memory by Re-ordering Go Struct Fields - Qvault

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
  • structslop

    structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.

    There's a nice tool for these cases, https://github.com/orijtech/structslop

  • go

    The Go programming language

    - https://github.com/golang/go/issues/36606

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • bolt

    There's things like boltdb which maps a database file to memory and accesses it through raw structures with no serialization. Any changes to the structure layout would break it.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts