-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HDR: speed up reading by around 4x (#3590)
Most of the cost in HDR file reading was converting from RGBE to floats, inside ldexpf(), which at least on Windows/VS2022 spends most of the time inside _ctrlfp(). But we only have 256 possible exponents in total, so just use a precomputed table. On my PC (Windows 10, VS2022, Ryzen 5950X) this change gets file read time for an 8x resolution .HDR image from 1.10s down to 0.27s
- Loading branch information
Showing
1 changed file
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters