Skip to content

reducing memory footprint #2

Description

@abzcoding

by changing

type MX_Record struct {
Ttl uint32 `json:"ttl,omitempty"`
Host string `json:"host"`
Preference uint16 `json:"preference"`
}

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions