Skip to content

Remove startup overhead? #30

Closed
Closed
@mperham

Description

@mperham

The colors gem is slow to require because it generates a lot of constants and structures at boot time. For instance:

named [0xf0, 0xf8, 0xff], :AliceBlue

Would it be possible to lazy load these named constants and hashes only upon first access?

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