Skip to content

Commit 7bacf9b

Browse files
committed
Removed xored-globals from the mdir struct
The xored-globals have a very large footprint. In the worst case, the xored-globals are stored on each metadata-pair, twice in memory. They must be very small, but are also very useful, so at risk of growing in the future (hint global free-list?). Initially we also stored a copy in each mdir structure, since this avoided extra disk access to look up the globals when we need to modify the global state on a metadata-pair. But we can easily just fetch the globals when needed. This is more costly in terms of runtime, but reduces RAM impact of globals, which was previously needed for each open dir and file.
1 parent 5eeeb9d commit 7bacf9b

File tree

2 files changed

+108
-97
lines changed

2 files changed

+108
-97
lines changed

0 commit comments

Comments
 (0)