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

This page summarizes the projects mentioned and recommended in the original post on /r/programming

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • maligned

    Tool to detect Go structs that would take less memory if their fields were sorted.

  • As PuzzleheadedHuman pointed out, there are readily available linters available to check this: https://github.com/mdempsky/maligned Which is integrated into golangci-lint. If you are seriously programming Go, you should be using that anyhow. Though I think that's not on by default, I also recommend anyone using golangci-lint read through everything it ships with. Many interesting ones are not turned on by default because they are very, very opinionated (such as this one), and a few of the defaults I turn off personally.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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