Patch Set 8: I would prefer that you didn't submit this

Now, I didn't read the code because of Bug 331273 (from the patches in the thread "Avoiding stat calls (again)".

The main issue with performance  still is that we do a lot of unnecessary work which we should fix instead of making the unnecessary work faster.

Do we have numbers to support the need for this added complexity?