Skip to content

Commit

Permalink
Reduce the cache size for better balance
Browse files Browse the repository at this point in the history
Since the cache hits are mostly localised, a larger cache is only slower in my tests
  • Loading branch information
pastelsky committed Oct 12, 2023
1 parent ca55b55 commit 1e9814d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function loadModuleDataRaw(moduleName, rootDir) {
}
}

const loadModuleData = memoize(loadModuleDataRaw, 5000);
const loadModuleData = memoize(loadModuleDataRaw, 500);

export { loadModuleData };

Expand Down

0 comments on commit 1e9814d

Please sign in to comment.