Skip to content

Improve pathExists and isDirectory performance once graceful-fs supports it #109

@markjm

Description

@markjm

Once this change is merged: isaacs/node-graceful-fs#221, stop throwing errors in below places:

this.fs.statSync(filename);

isDir = this.fs.statSync(dir).isDirectory();

Since we expect this can be null, we skip a lot of overhead in creating these errors. Skipping these errors is over a 3x speedup for these calls
nodejs/node#33716

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions