Skip to content

Commit c22ea02

Browse files
author
Vlad Arama
committed
cache pathExistence
This commit caches the pathExistence of the data folder and user data folder in order to avoid accessing the disk on every call of `createConfigDirUri`. This should prevent possible performance regressions. Signed-off-by: Vlad Arama <vlad.arama@ericsson.com>
1 parent 88c1f27 commit c22ea02

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎packages/core/src/node/env-variables/env-variables-server.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export class EnvVariablesServerImpl implements EnvVariablesServer {
6262
}
6363
} else {
6464
process.env.THEIA_CONFIG_DIR = join(homedir(), '.theia');
65-
this.pathExistenceCache[process.env.THEIA_CONFIG_DIR] = true;
6665
}
6766
return FileUri.create(process.env.THEIA_CONFIG_DIR).toString();
6867
}

0 commit comments

Comments
 (0)