-
-
Notifications
You must be signed in to change notification settings - Fork 51
perf(index): use the compiler
's cached fs
for stats (this.fs.stat
)
#42
perf(index): use the compiler
's cached fs
for stats (this.fs.stat
)
#42
Conversation
Codecov Report
@@ Coverage Diff @@
## master #42 +/- ##
=======================================
Coverage 17.47% 17.47%
=======================================
Files 2 2
Lines 103 103
Branches 13 13
=======================================
Hits 18 18
Misses 73 73
Partials 12 12
Continue to review full report at Codecov.
|
If anyone is interested in trying this change out I created a fork of an open source app here: https://github.com/gusvargas/hackernews-react-graphql Steps to reproduce:
Linking against the changes in PR brings the compile times back down to what is observed in step 3. |
compiler
's cached fs
for stats (this.fs.stat
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gusvargas Thx
@michael-ciniawsky Any chance we can get the 1.2.3 release soon? The incremental build performance issue was the only thing holding us back from using the |
Sry for the delay, released in |
Related to #35
I was experiencing a similar issue to that described in #10 (comment)
After profiling incremental builds it looks like
fs.stat
is the biggest bottle neck, specifically when validating a cache entry after a hit:cache-loader/src/index.js
Lines 112 to 114 in 74fccc4
This change decreased my incremental build times back down below 1s.