1 个仓库
Tools that optimize the physical arrangement of fields in a data structure to reduce memory usage.
Distinct from Struct Hydrators: Distinct from struct hydration: focuses on the memory layout and padding of the structure itself.
Explore 1 awesome GitHub repository matching data & databases · Layout Optimizers. Refine with filters or upvote what's useful.
go-tools is a collection of utilities for Go static analysis and memory layout optimization. It provides a toolset designed to analyze source code to detect bugs and dead code, alongside specialized tools for optimizing how structs are arranged in memory. The project includes a memory alignment visualizer to display physical memory layouts and padding, as well as a struct layout optimizer that reorders fields to minimize memory padding. Additionally, it provides a boilerplate generator to automate the creation of registration and test files required for developing custom Go analyzers. The to
Reorders fields within a struct to minimize padding and reduce the overall memory footprint.