Skip to content

[lit-next] Rename hydrate & hydrate-support to "experimental"#1743

Merged
kevinpschaaf merged 2 commits intolit-nextfrom
lit-next-experimental-hydrate
Apr 14, 2021
Merged

[lit-next] Rename hydrate & hydrate-support to "experimental"#1743
kevinpschaaf merged 2 commits intolit-nextfrom
lit-next-experimental-hydrate

Conversation

@kevinpschaaf
Copy link
Member

@kevinpschaaf kevinpschaaf commented Apr 14, 2021

We could also consider adding a top-level console.warn in hydrate.js (since hydrate-support also imports it) to the nature of:

Lit hydration support is experimental. Experimental modules may undergo breaking changes within otherwise non-major releases.

WDYT?

@github-actions
Copy link
Contributor

github-actions bot commented Apr 14, 2021

📊 Tachometer Benchmark Results

Summary

nop-update

  • lit-html-kitchen-sink: unsure 🔍 -5% - +1% (-1.63ms - +0.47ms)
    this-change vs tip-of-tree

render

  • lit-element-list: unsure 🔍 -2% - +3% (-2.36ms - +3.04ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -3% - +1% (-1.39ms - +0.46ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -5% - +4% (-0.70ms - +0.61ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -1% - +3% (-0.91ms - +1.77ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -2% - +2% (-1.14ms - +1.42ms)
    this-change vs tip-of-tree

update

  • lit-element-list: unsure 🔍 -1% - +2% (-5.70ms - +14.63ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -2% - +4% (-2.20ms - +4.85ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -1% - +2% (-4.85ms - +9.14ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -3% - +1% (-4.79ms - +1.43ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -1% - +1% (-8.91ms - +11.29ms)
    this-change vs tip-of-tree

update-reflect

  • lit-element-list: unsure 🔍 -1% - +1% (-11.74ms - +11.63ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -1% - +2% (-5.32ms - +14.79ms)
    this-change vs tip-of-tree

Results

lit-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
98.29ms - 102.40ms-unsure 🔍
-2% - +3%
-2.36ms - +3.04ms
faster ✔
18% - 22%
22.08ms - 27.15ms
tip-of-tree
tip-of-tree
98.26ms - 101.76msunsure 🔍
-3% - +2%
-3.04ms - +2.36ms
-faster ✔
18% - 22%
22.67ms - 27.25ms
previous-release
previous-release
123.48ms - 126.45msslower ❌
22% - 27%
22.08ms - 27.15ms
slower ❌
22% - 28%
22.67ms - 27.25ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
851.84ms - 865.00ms-unsure 🔍
-1% - +2%
-5.70ms - +14.63ms
faster ✔
7% - 9%
64.96ms - 85.43ms
tip-of-tree
tip-of-tree
846.21ms - 861.71msunsure 🔍
-2% - +1%
-14.63ms - +5.70ms
-faster ✔
7% - 10%
68.64ms - 90.68ms
previous-release
previous-release
925.78ms - 941.45msslower ❌
8% - 10%
64.96ms - 85.43ms
slower ❌
8% - 11%
68.64ms - 90.68ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
918.90ms - 935.13ms-unsure 🔍
-1% - +1%
-11.74ms - +11.63ms
faster ✔
3% - 6%
31.50ms - 55.51ms
tip-of-tree
tip-of-tree
918.66ms - 935.47msunsure 🔍
-1% - +1%
-11.63ms - +11.74ms
-faster ✔
3% - 6%
31.25ms - 55.66ms
previous-release
previous-release
961.68ms - 979.37msslower ❌
3% - 6%
31.50ms - 55.51ms
slower ❌
3% - 6%
31.25ms - 55.66ms
-
lit-html-kitchen-sink

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
40.28ms - 41.89ms-unsure 🔍
-3% - +1%
-1.39ms - +0.46ms
faster ✔
15% - 21%
7.27ms - 10.88ms
tip-of-tree
tip-of-tree
41.09ms - 42.01msunsure 🔍
-1% - +3%
-0.46ms - +1.39ms
-faster ✔
14% - 20%
6.93ms - 10.29ms
previous-release
previous-release
48.54ms - 51.78msslower ❌
17% - 27%
7.27ms - 10.88ms
slower ❌
17% - 25%
6.93ms - 10.29ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
106.49ms - 112.57ms-unsure 🔍
-2% - +4%
-2.20ms - +4.85ms
unsure 🔍
-1% - +6%
-0.92ms - +6.69ms
tip-of-tree
tip-of-tree
106.43ms - 109.98msunsure 🔍
-4% - +2%
-4.85ms - +2.20ms
-unsure 🔍
-1% - +4%
-1.33ms - +4.46ms
previous-release
previous-release
104.36ms - 108.92msunsure 🔍
-6% - +1%
-6.69ms - +0.92ms
unsure 🔍
-4% - +1%
-4.46ms - +1.33ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
34.72ms - 36.09ms-unsure 🔍
-5% - +1%
-1.63ms - +0.47ms
unsure 🔍
-4% - +2%
-1.38ms - +0.68ms
tip-of-tree
tip-of-tree
35.19ms - 36.78msunsure 🔍
-1% - +5%
-0.47ms - +1.63ms
-unsure 🔍
-2% - +4%
-0.88ms - +1.34ms
previous-release
previous-release
34.98ms - 36.53msunsure 🔍
-2% - +4%
-0.68ms - +1.38ms
unsure 🔍
-4% - +2%
-1.34ms - +0.88ms
-
lit-html-repeat

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
13.27ms - 14.20ms-unsure 🔍
-5% - +4%
-0.70ms - +0.61ms
faster ✔
9% - 16%
1.31ms - 2.48ms
tip-of-tree
tip-of-tree
13.32ms - 14.24msunsure 🔍
-4% - +5%
-0.61ms - +0.70ms
-faster ✔
8% - 15%
1.27ms - 2.43ms
previous-release
previous-release
15.27ms - 15.99msslower ❌
9% - 18%
1.31ms - 2.48ms
slower ❌
9% - 18%
1.27ms - 2.43ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
407.07ms - 416.70ms-unsure 🔍
-1% - +2%
-4.85ms - +9.14ms
faster ✔
27% - 29%
151.08ms - 167.45ms
tip-of-tree
tip-of-tree
404.66ms - 414.82msunsure 🔍
-2% - +1%
-9.14ms - +4.85ms
-faster ✔
27% - 29%
153.06ms - 169.76ms
previous-release
previous-release
564.52ms - 577.77msslower ❌
36% - 41%
151.08ms - 167.45ms
slower ❌
37% - 42%
153.06ms - 169.76ms
-
lit-html-template-heavy

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
65.66ms - 67.65ms-unsure 🔍
-1% - +3%
-0.91ms - +1.77ms
faster ✔
20% - 23%
16.41ms - 19.48ms
tip-of-tree
tip-of-tree
65.33ms - 67.13msunsure 🔍
-3% - +1%
-1.77ms - +0.91ms
-faster ✔
20% - 23%
16.90ms - 19.85ms
previous-release
previous-release
83.43ms - 85.78msslower ❌
24% - 30%
16.41ms - 19.48ms
slower ❌
25% - 30%
16.90ms - 19.85ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
135.58ms - 139.21ms-unsure 🔍
-3% - +1%
-4.79ms - +1.43ms
faster ✔
17% - 20%
27.77ms - 33.05ms
tip-of-tree
tip-of-tree
136.55ms - 141.60msunsure 🔍
-1% - +3%
-1.43ms - +4.79ms
-faster ✔
15% - 19%
25.56ms - 31.90ms
previous-release
previous-release
165.89ms - 169.72msslower ❌
20% - 24%
27.77ms - 33.05ms
slower ❌
18% - 23%
25.56ms - 31.90ms
-
reactive-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
91.24ms - 94.45ms-unsure 🔍
-3% - +2%
-2.80ms - +1.78ms
unsure 🔍
-1% - +4%
-0.46ms - +3.43ms
tip-of-tree
tip-of-tree
91.73ms - 94.98msunsure 🔍
-2% - +3%
-1.78ms - +2.80ms
-slower ❌
0% - 4%
0.03ms - 3.96ms
previous-release
previous-release
90.26ms - 92.46msunsure 🔍
-4% - +0%
-3.43ms - +0.46ms
faster ✔
0% - 4%
0.03ms - 3.96ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
1098.29ms - 1120.27ms-unsure 🔍
-1% - +2%
-9.86ms - +22.45ms
unsure 🔍
-1% - +2%
-12.88ms - +19.83ms
tip-of-tree
tip-of-tree
1091.14ms - 1114.83msunsure 🔍
-2% - +1%
-22.45ms - +9.86ms
-unsure 🔍
-2% - +1%
-19.76ms - +14.12ms
previous-release
previous-release
1093.69ms - 1117.92msunsure 🔍
-2% - +1%
-19.83ms - +12.88ms
unsure 🔍
-1% - +2%
-14.12ms - +19.76ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
1197.52ms - 1218.45ms-unsure 🔍
-2% - +1%
-24.45ms - +11.27ms
unsure 🔍
-1% - +1%
-13.27ms - +15.61ms
tip-of-tree
tip-of-tree
1200.09ms - 1229.06msunsure 🔍
-1% - +2%
-11.27ms - +24.45ms
-unsure 🔍
-1% - +2%
-9.81ms - +25.33ms
previous-release
previous-release
1196.86ms - 1216.77msunsure 🔍
-1% - +1%
-15.61ms - +13.27ms
unsure 🔍
-2% - +1%
-25.33ms - +9.81ms
-

tachometer-reporter-action v2 for Benchmarks

@kevinpschaaf kevinpschaaf changed the title Rename hydrate & hydrate-support to "experimental" [lit-next] Rename hydrate & hydrate-support to "experimental" Apr 14, 2021
@abdonrd
Copy link
Contributor

abdonrd commented Apr 14, 2021

Isn't everything in the labs folder considered experimental?

@kevinpschaaf
Copy link
Member Author

Isn't everything in the labs folder considered experimental?

Yes, however the lit/hydrate.js and lit/hydrate-support.js modules aren't themselves in labs, and decoupling them enough to move to a separate package would cause us to make more core library symbols public (and non-minifiable) than we'd like.

@abdonrd
Copy link
Contributor

abdonrd commented Apr 14, 2021

Isn't everything in the labs folder considered experimental?

Yes, however the lit/hydrate.js and lit/hydrate-support.js modules aren't themselves in labs, and decoupling them enough to move to a separate package would cause us to make more core library symbols public (and non-minifiable) than we'd like.

Oh, you're totally right! I don't know why I thought everything was in labs. Thanks!

@kevinpschaaf
Copy link
Member Author

Yeah, the server-side SSR module itself is in labs, so you can't use hydrate without using @lit-labs/ssr, but as a pragmatic decision we're leaving hydration code in the core, and just want to be clear that we don't consider those API's to be totally stable yet, although the lit package itself will otherwise be.

Copy link
Member

@sorvell sorvell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just one question.

"build:ts": "tsc --build && treemirror development . '**/*.d.ts{,.map}'",
"build:ts:watch": "tsc --build --watch",
"clean": "rm -rf {index,hydrate-support,hydrate}.{js,js.map,d.ts} directives/ development/ test/ *.tsbuildinfo",
"clean": "rm -rf {index}.{js,js.map,d.ts} directives/ development/ test/ *.tsbuildinfo",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was hydrate there mistakenly before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, vestigial from when I tried moving them there earlier, missed removing it.

@kevinpschaaf kevinpschaaf merged commit 98fff04 into lit-next Apr 14, 2021
@kevinpschaaf kevinpschaaf deleted the lit-next-experimental-hydrate branch April 14, 2021 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants