From 703366421cfc4b751b4597142ea62e3757164290 Mon Sep 17 00:00:00 2001 From: GatsbyJS Bot Date: Thu, 5 Mar 2020 22:28:07 +0200 Subject: [PATCH] (fix gatsby - redux cache) Reduced chunk size buffer from 150 gb to 1.5 gb (#21993) * (blog)Draft challenge 10 of 100daysofgatsby (#21969) * Draft challenge 10 of 100daysofgatsby * chore: format * Fix challenge number * Fix typos and add addititional links. * Update docs/blog/100days/performance/index.md Co-Authored-By: Obinna Ekwuno * Remove "first person" as per style guide Co-authored-by: GatsbyJS Bot Co-authored-by: Obinna Ekwuno * reduced target ceiling from 150 gb to 1.5 gb) * Revert "(blog)Draft challenge 10 of 100daysofgatsby (#21969)" This reverts commit 36daee03faea96169b21354cf6dd28da906b66c7. Co-authored-by: Hashim Warren Co-authored-by: GatsbyJS Bot Co-authored-by: Obinna Ekwuno --- packages/gatsby/src/redux/persist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/src/redux/persist.ts b/packages/gatsby/src/redux/persist.ts index f4206af9954ee..cba7baa0d10e0 100644 --- a/packages/gatsby/src/redux/persist.ts +++ b/packages/gatsby/src/redux/persist.ts @@ -88,7 +88,7 @@ function guessSafeChunkSize(values: [string, IReduxNode][]): number { // Max size of a Buffer is 2gb (yeah, we're assuming 64bit system) // https://stackoverflow.com/questions/8974375/whats-the-maximum-size-of-a-node-js-buffer // Use 1.5gb as the target ceiling, allowing for some margin of error - return Math.floor((150 * 1024 * 1024 * 1024) / maxSize) + return Math.floor((1.5 * 1024 * 1024 * 1024) / maxSize) } function prepareCacheFolder(