This doesn't explain why we have to do consistency checks on the entire stored data. If all you need is one bytes number per origin, I would think this information could be stored in a more compact fashion.
Bug 1903530 Comment 22 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Why does computing how much space an origin occupies involve so much file system work? Can we store this information in a more compact way?
Why does computing how much space an origin occupies involve so much file system work? Why do we need to compute it rather than just store it? Are we worried some files got deleted out from under us and that we're applying too stringent limits if we trust the stored sizes? Have we investigated how Chrome addresses this problem?
Why does computing how much space an origin occupies involve so much file system work? Why do we need to compute this size rather than just store a number per origin? Are we worried some files got deleted out from under us and that we're applying too stringent limits if we trust the stored sizes? Have we investigated how Chrome addresses this problem?