It takes less than half a second on my machine, which I think is OK, but just in case I limited it to iterate over a maximum of 10000 files.