This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
OOM when importing large directories #1736
Closed
Description
This call to get-folder-size
can cause OOMs on large directories as the get-folder-size
module keeps a list of all the files it's seen to make sure it doesn't double-count symlinked files (for example).
We only calculate the directory size to show a progress indicator - I propose we switch to an indeterminate indicator if the number of files being imported is unreasonable (say, 10k).
What do you think?