I have directory that contains nearly 14,000,000 audio samples in *.wav format.
All plain storage, no subdirectories.
I want to loop through the files, but when I use DirectoryInfo.GetFiles()
on that folder the whole application freezes for minutes!
Can this be done another way? Perhaps read 1000, process them, then take next 1000 and so on?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…