Skip to content

Slow as molasses  #3

@naturalethic

Description

@naturalethic

I didn't look into how you're doing this, but crayon(n)('some string') is massively slow.

Essentially all you need to do is "\x1b[38;5;" + n + "m" + "some string" .. so some perf is in order.

Swapping out your lib for a simple custom function that did that resulted in what looked like a 100x boost.

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