Performance Optimization and Memory Usage Reduction by Sorting Fields in Go Structs
By rearranging the fields in the struct from the first example to the second one, performance can be improved and memory usage reduced by sorting fields in Go structs.
type BadStruct struct { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment