Closed johannesvollmer closed 12 months ago
So, I think your answer can be answered in two parts:
switching to the core C API sounds reasonable. Do you think that the performance could improve by doing that? Maybe the bindings might have to go through fewer conversion steps?
That's a good question. Honestly, I'm not too sure. But from some informal discussions with some people connected to the OpenEXR project, that seems to be the way to go in general for them. A C++ or Rust front end, and C back end. But, your guess sounds reasonable.
alright, thanks for the info :)
Hi! I'm wondering, are there some well-known steps how to achieve the best runtime performance? Which switches to flip and which patterns to embrace?
There's a lot of parameters to tweak when creating an image, but when reading an image, we have to work with the existing data. So we can't change the compression method.
What I already know:
num_cpus()
?). does this have negative effects when the file doesn't use any compression?I'm not sure about:
file.read_pixels(0, height - 1)
already does that internally, right?Is there more? Thanks for considering :)