martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
209 stars 11 forks source link

Add In-Memory and On-Disk Cache for DNG Files #22

Closed Alex-Vasile closed 1 year ago

Alex-Vasile commented 1 year ago

Changes

This eliminates essentially all of the time required for converting the DNGs and loading them on subsequent runs. This accounts for as much as 35% of the run time (when using simple temporal averaging).

In absolute terms, on my M1 Mac, this is about 0.6s of total savings per image (24MPix / 50 MB images).

Needs #21 merged in first (will look much smaller after that's merged).

Closes #20.