I have a lot of files (compile artifacts) with similar names but with different content.
My goal is to disambiguate them by placing into different directories. Each file is associated with the several build parameters/dimensions (like -D in C compilation). Let's say that a file F has several dimensions 1,2,3.
I can place A into multilevel directory structure:

or in a flat directory structure:

In both cases the location of a particular F is unique. I have thousands of these in my environment and a multilevel directory structure is huge.
The alternate flat structure will have a LOT of directories on one level.
The question is, which hierarchy will provide faster access?
I often need to delete build artifacts and it takes a while for 500-600 Gb I have.
Will I gain anything if I use a flat directory structure?