Skip to content

Performance difference to imgcat #264

@torarnv

Description

@torarnv

Comparing chafa to imgcat from https://github.com/olivere/iterm2-imagetools/ I'm seeing:

❯ time chafa /tmp/foo.png
chafa /tmp/foo.png  0.14s user 0.14s system 33% cpu 0.805 total

❯ time imgcat /tmp/foo.png
imgcat /tmp/foo.png  0.01s user 0.02s system 16% cpu 0.179 total

And the speed difference is noticeable.

Any idea where the slowdown in chafa comes from? I'd prefer to use chafa for all of its nice options (watching changes to a file e.g.) but the slowdown worries me. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions