My git repository contains around 20GB of data, mainly consisting of JSON/CSV/YAML files. Additionally, there are scattered TypeScript/JavaScript (.ts/.js) files among the data files. As the repository has grown in size, I encounter a significant delay every time I attempt to save a .ts or .js file:
https://i.sstatic.net/VM2Lt.png
Whenever I press CMD+s to save on my Mac, there is a wait time of approximately 3+ minutes with the pink progress bar at the bottom moving from left to right multiple times. My setup includes basic ESLint and prettier configurations.
Contents of .eslintrc.json
:
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"ignorePatterns": ["**/*.js", "import/github/**/*/data"],
...
}
Contents of .prettierrc.json
:
{
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 72,
"tabWidth": 2,
"useTabs": false,
...
}
Contents of .tsconfig.json
:
{
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
"lib": ["es2020", "dom", "dom.iterable"],
"outDir": "host",
"rootDir": ".",
...
}
Despite restarting my computer and quitting VSCode multiple times, this issue persists. It appears to occur only in large repositories, making it challenging to identify the root cause. Any suggestions on how to resolve this prolonged processing time when saving files?
The delayed saving process lasting over 3 minutes seems to be an ongoing frustration.