Explore fast path: `fs.isFile` and `fs.isDirectory`
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 399
- Forks
- 11
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
Original issue: https://github.com/nodejs/performance/issues/39
Module resolution typically involves a lot of file system calls. During the performance meeting on 23. Jan 2023 the idea was voiced to explore how much speedup could be gained via an optimized isFile or isDirectory function.
Example npm packages where such functions are used in the wild:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked original issue and the performance meeting context, then inspect how resolve and enhanced-resolve use file existence checks in the linked examples. Benchmark the current filesystem calls and evaluate whether optimized isFile or isDirectory functions provide a measurable speedup; done requires reported performance findings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100