Skip to content
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

Convert incremental generation cache to a class #14660

Merged
merged 2 commits into from Jun 28, 2020

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented Jun 28, 2020

We've been meaning to change this code for a while 👍

  • Changed the name from spr to incremental
  • Changed the code to be a class instead of using module scope variables

@ijjk
Copy link
Member

ijjk commented Jun 28, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
buildDuration 11.8s 12.1s ⚠️ +260ms
nodeModulesSize 67.1 MB 67.1 MB ⚠️ +541 B
Page Load Tests Overall increase ✓
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
/ failed reqs 0 0
/ total time (seconds) 1.916 1.971 ⚠️ +0.06
/ avg req/sec 1305.02 1268.33 ⚠️ -36.69
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.246 1.212 -0.03
/error-in-render avg req/sec 2006.24 2062.26 +56.02
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.js gzip 6.51 kB 6.51 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..558d.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.1 kB 57.1 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.module.js gzip 5.59 kB 5.59 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.08 kB 7.08 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.6 kB 52.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
index.html gzip 954 B 954 B
link.html gzip 959 B 959 B
withRouter.html gzip 947 B 947 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
buildDuration 12.7s 12.7s ⚠️ +3ms
nodeModulesSize 67.1 MB 67.1 MB ⚠️ +541 B
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.js gzip 6.51 kB 6.51 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..558d.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.1 kB 57.1 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.module.js gzip 5.59 kB 5.59 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.08 kB 7.08 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.6 kB 52.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 916 kB 916 kB
routerDirect.js 908 kB 908 kB
withRouter.js 908 kB 908 kB
Overall change 4.49 MB 4.49 MB
Commit: f290f5b

@timneutkens timneutkens changed the title Update name from spr to incremental Convert incremental generation cache to a class Jun 28, 2020
@ijjk
Copy link
Member

ijjk commented Jun 28, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
buildDuration 13.2s 13.6s ⚠️ +388ms
nodeModulesSize 67.1 MB 67.1 MB ⚠️ +1.16 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
/ failed reqs 0 0
/ total time (seconds) 2.277 2.311 ⚠️ +0.03
/ avg req/sec 1098.16 1081.88 ⚠️ -16.28
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.593 1.582 -0.01
/error-in-render avg req/sec 1569.58 1580.6 +11.02
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.js gzip 6.51 kB 6.51 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..558d.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.1 kB 57.1 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.module.js gzip 5.59 kB 5.59 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.08 kB 7.08 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.6 kB 52.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
index.html gzip 954 B 954 B
link.html gzip 959 B 959 B
withRouter.html gzip 947 B 947 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
buildDuration 14.4s 14.2s -216ms
nodeModulesSize 67.1 MB 67.1 MB ⚠️ +1.16 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.js gzip 6.51 kB 6.51 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..558d.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.1 kB 57.1 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
main-HASH.module.js gzip 5.59 kB 5.59 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.08 kB 7.08 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.6 kB 52.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/rename-spr-to-incremental Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 916 kB 916 kB
routerDirect.js 908 kB 908 kB
withRouter.js 908 kB 908 kB
Overall change 4.49 MB 4.49 MB
Commit: 114faf1

@kodiakhq kodiakhq bot merged commit 83de342 into vercel:canary Jun 28, 2020
rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
We've been meaning to change this code for a while 👍

- Changed the name from spr to incremental
- Changed the code to be a class instead of using module scope variables
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants