This is just my comment from How to cache or otherwise speed up `du` summaries? formulated as a question of its own:
Are there any extended discussions about creating a filesystem in which the total size of each directory (think du) is saved and "bubbles up" (i.e., is propagated upwards in the tree so that all parent directory sizes are correct as well) whenever changed e.g. due to a write to a file, deletion, etc., so that du would be instant?
From the answer I linked above, it's clear that I/O performance would suffer as a result of doing this, I just wonder by how much. Would it decrease by orders of magnitude or just a couple (dozen) percent?
Closely related to this is the concept of "bubbling up" mtimes in the same manner, so that each directory's mtime reflects the most recent change within its entire sub-tree. Both of these features together could, for instance, speed up rsync's --update mode considerably for trees with many deeply nested files.