forked from mar-file-system/GUFI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes struct BottomUp smaller by replacing two fixed-size buffers of 4 KiB for pathnames with dynamically allocated buffers that are only as large as they need to be to store the given path. This reduces the size of struct BottomUp from 8504 bytes to 328 bytes. I found that parallel_rmr used 63916 KiB of virtual memory to delete a tree of 55987 dirs and 111972 files before this change, and 1131492 KiB after this change.
- Loading branch information
1 parent
6d0ab3d
commit 884694b
Showing
3 changed files
with
123 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters