-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Misc] Research caching to improve yarn build
times
#199
Comments
We have done some research on this issue during a previous MMF: #32 We may be able to utilize incremental builds to help improve this process. It's possible that this issue has been solved by the Gatsby community. |
https://bulletninja.com/enable-gatsby-incremental-builds-aws-amplify Here's some more information about that: https://bulletninja.com/enable-gatsby-incremental-builds-aws-amplify |
With the update of Gatsby to the newest version, caching has dramatically improved.
So there is a long initial start, but as long as someone doesn't run
|
without images and no caching - 141.587781166 s We could also limit the number of pages built during development. If a contributor knows that they only want to develop on a certain page, we can put that as an input and then just modify the query for development. |
|
followed up with this ticket: #257 |
Descriptions
Running
yarn build
oryarn develop
can take over 2 minutes to run for a fresh install and the repository currently only represents 10% of the total amount of content. This is a bit of a deterrent for new people who want to jump in and contribute.We need to do some research into how to lower this build time and ensure we can scale up the amount of content without exponentially increasing build times. Caching images and queries may be one way to achieve this, but it doesn't solve the issue for new developers.
Acceptance Criteria
Since this is somewhat vague, we will probably want to timebox this effort to no more than 4 hours (for now).
The text was updated successfully, but these errors were encountered: