Skip to content

Reduce memory footprint of TokenKind #3

Description

@lazzy-cipher

Move that array:

var tokens = [...]string{

Into that function:

func (t TokenKind) String() string {

To reduce the memory footprint when not converting a TokenKind to string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions