Skip to content

Slower than image crate jpeg encoder for higher qualities on ARM A76 #35

Open

Description

@paul-fornage

I don't really have much to add other than on a Raspberry pi 5, the image crate outperforms this one. While not by much, and they remain close at lower qualities, the fact that x86 is like twice as fast as image seems to indicate that something is wrong on arm. I realize this might not have been a design priority, and sometimes optimizing for one is worse for the other. But when vectorization is also not supported for that architecture, it seems to leave a gap in performance.

Not really an issue per say, feel free to close if this isn't part of the goal. But I thought it was interesting, and maybe you just never tested on that architecture.

Edit: Forgot to mention, std_simd branch was also about 5% slower. Just a rough observation in a test as part of my app, not a proper cargo bench result, but across multiple results it's almost certainly not faster.

Activity

  1. Shnatsel commented on Oct 25, 2026

    @Shnatsel
    Contributor

    This branch should address this: #41

    It vectorizes FDCT which takes up a lot of time and was not vectorized on main or in the std::simd branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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