redins
redins copied to clipboard
reducing memory footprint
by changing https://github.com/arvancloud/redins/blob/2c66e463d1dcb5d2b0a8106236f990810fe7c522/dns_types/dns_types.go#L72-L76
to
type MX_Record struct {
Ttl uint32 `json:"ttl,omitempty"`
Preference uint16 `json:"preference"`
Host string `json:"host"`
}
you can reduce struct of size 32 to be 24 (because of how golang allocates memory)