Skip to content

Commit

Permalink
perf: fs performance improvements (#1007)
Browse files Browse the repository at this point in the history
* perf: use pojo for fs link-hop cache

* perf: reduce fs operations in sync hop lookup

* perf: do not run guards outside roots, reduce path.* calls in isEscape helper

* perf: cache not-found fs hop results

* refactor: align async nextHop with sync

* perf: cache async readHopLink

* Don't rely on try/catch; we've measured it as a performance issue on older versions of node

---------

Co-authored-by: Greg Magolan <gmagolan@gmail.com>
  • Loading branch information
jbedard and gregmagolan authored Apr 18, 2023
1 parent 0726e21 commit 434200e
Show file tree
Hide file tree
Showing 8 changed files with 596 additions and 380 deletions.
182 changes: 110 additions & 72 deletions js/private/node-patches/fs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 434200e

Please sign in to comment.