Closed d-chambers closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d291976
) 99.51% compared to head (33e41f0
) 99.52%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR implements an optimization for
scan
. Since in large DAS file archives a single file type is usually used, rather than iterate through each compatibleFiberIO
to figure out the format, for each file, once the format for a single file is discovered it is most likely all other files will be the same format. This PR prioritizes the last discovered format, then falls back to the normal behavior.In the added benchmark, I observe speed ups of up to 100% in scanning a directory of files.
Checklist
I have (if applicable):