8000 reducing memory footprint · Issue #2 · arvancloud/redins · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
reducing memory footprint #2
Open
@abzcoding

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)

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

      0