Skip to content

Performance regression reading image files with large headers using stream API in 3.3.4 #2073

@konivo

Description

@konivo

Hi,

I found a substantial slowdown in Animal Logic scene (https://animallogic.com/alab/) when accessing textures through OIIO infrastructure using OpenEXR 3.3.4 when compared to using 3.3.2 version.

Unfortunately I don't have a simple repro yet, but I've been able to trace the issue down to fix for #1984, and I've verified that disabling 1-byte read fixes the slowdown. The headers are quite large in alab textures and I wonder if they are not read by OIIO repeatedly.

A workaround could be to not use stream API (I am not sure that is possible as OIIO manages things), but we hope there could be a better fix, so that stream API is as fast as it used to be while behaving correctly for small files?

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