Caching the results of path.relative reduces rebuild times
See original GitHub issueI did a bit of profiling with devtool and noticed that a bunch of time is spent in path.relative
during rebuilds, for the most part repeating path resolutions that have already been done.
Memoizing it’s results decreases my rebuild times by about 10%. I made a little module for shimming path.relative to make this happen, cached-path-relative. But maybe it’d be best to have browserify and its dependencies use this or something like it explicitly?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
persistent cache relative paths · Issue #10400 - GitHub
You can use file caching in CI. Just make sure that the absolute paths are consistent between CI builds. 1
Read more >Caching Dependencies - CircleCI
Caching is one of the most effective ways to make jobs faster on CircleCI. By reusing the data from previous jobs, you also...
Read more >Pipeline caching - Azure - Microsoft Learn
Pipeline caching can help reduce build time by allowing the outputs ... Relative file paths or file patterns are resolved against $(System.
Read more >Caching in GitLab CI/CD
Use artifacts to pass intermediate build results between stages. ... Both artifacts and caches define their paths relative to the project directory, ...
Read more >Visual Studio retrieving an incorrect path to a project from ...
Deleting the cache directories for VS and TFS. I'm tearing my hair out because I can't recreate the solution as it has near...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great work everyone. Released in 13.1.1.
Sure, i’ll try to put something together tonight.