Skip to content

Commit 7033664

Browse files
GatsbyJS BothashimwarrenEkwuno
authored
(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 <[email protected]> * Remove "first person" as per style guide Co-authored-by: GatsbyJS Bot <[email protected]> Co-authored-by: Obinna Ekwuno <[email protected]> * reduced target ceiling from 150 gb to 1.5 gb) * Revert "(blog)Draft challenge 10 of 100daysofgatsby (#21969)" This reverts commit 36daee0. Co-authored-by: Hashim Warren <[email protected]> Co-authored-by: GatsbyJS Bot <[email protected]> Co-authored-by: Obinna Ekwuno <[email protected]>
1 parent 252b2dc commit 7033664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/redux/persist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function guessSafeChunkSize(values: [string, IReduxNode][]): number {
8888
// Max size of a Buffer is 2gb (yeah, we're assuming 64bit system)
8989
// https://stackoverflow.com/questions/8974375/whats-the-maximum-size-of-a-node-js-buffer
9090
// Use 1.5gb as the target ceiling, allowing for some margin of error
91-
return Math.floor((150 * 1024 * 1024 * 1024) / maxSize)
91+
return Math.floor((1.5 * 1024 * 1024 * 1024) / maxSize)
9292
}
9393

9494
function prepareCacheFolder(

0 commit comments

Comments
 (0)