Hello, in my music player project (https://mplay3.handmade.network/) I extract all metadata from all .mp3 files that are in a user-defined folder. The problem is, it takes a really long time for windows to access these files, as shown in this image, 100% of the time is spend in CreateFileW.
And I only load the first 10bytes of the file!
The thing is, when I run it a second time, the duration _drastically increases. Now it only takes 122µs!
Because of that, I am not sure if there is anything I can do. In my music library I have 8k songs and it takes a few minutes to extract all metadata the first time, the second time it only takes ~6 seconds.
Maybe someone knows if there is anything to be done. I could not really find any good information about this. So I am trying here.
Thanks in advance for any information/help!