Skip to content

optimize Repository::definition[s]For*()

benchmarkDefinitionForMimeType -iterations 10000: 350ms -> 210ms
benchmarkDefinitionByExtension -iterations 3000: 1460ms -> 1150ms
benchmarkDefinitionsForFileName -iterations 2000: 1430ms -> 1250ms

I also removed unnecessary calls to QFileInfo.

Edited by jonathan poelen

Merge request reports

Loading