5 ms·
You still have to read the stored size on each parent to figure this out, at which point the optimization makes sense only if writes are significantly (at least
by gregmac 7y ago
You still have to read the stored size on each parent to figure this out, at which point the optimization makes sense only if writes are significantly (at least 2x) more expensive than reads, and this is not true for most desktop PCs.
This really boils down to a caching problem, and well, there's a reason it's one of the two hard computer science problems..
- hexomancer 7y agoNope. We only have to read the parent of the last changed folder. Plus, any filesystem worth its salts already caches the frequently used parts.