Skip to content

loop filter is slow #136

@Shnatsel

Description

@Shnatsel

On this lossy image, image-webp is 2.8x slower than dwebp and 1.4x slower than dwebp -noasm

honk.webp.zip

The profile points to the loop filter being the worst offender, accounting for half the decoding time: https://share.firefox.dev/45Jjlhp

image_webp::loop_filter::should_filter alone is taking up 25% of the total execution time, and it looks fairly simple to optimize.

I wonder what strides are valid - perhaps we could use const generics to specialize the implementation for each stride, like in #134?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions