naufraghi writes

Usually most used files are near the root. When creating or updating an index I think a breadth-first strategy can lead to better intermediate results.

medoc writes

I’ve given some thought to this, and I’m not completely convinced.

Most people who organize their files using directory trees would tend to store them at/near the bottom. Thunderbird email files are already 4 directories below home. What specific files are you thinking of ?

Maybe an interesting approach would be to begin breadth first then switch to depth first after at a given depth. Like this, the default config would process, for exemple, 4 levels, breadth first, with a good chance of finding personal files, then switch to depth first (more efficient I think), to process stuff like extracted source trees, etc. (assuming the implementation could be reasonably simple).

Thoughts ?