-
Notifications
You must be signed in to change notification settings - Fork 879
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
[lit-html] change CompiledTemplate h field to a TemplateStringsArray #3987
Conversation
🦋 Changeset detectedLatest commit: 05d9469 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultslit-element-list
render
update
update-reflect
lit-html-kitchen-sink
render
update
nop-update
lit-html-repeat
render
update
lit-html-template-heavy
render
update
reactive-element-list
render
update
update-reflect
|
f5c7be5
to
4dca86c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind checking out how many bytes this adds to the 3.0 branch? Just merge it into 3.0 and then do npm run benchmark:size
617aae2
to
05d9469
Compare
Tested memory impact of this change: This is a size regression. It adds 42 bytes to lit-core.min.js which is 14,740B at head. We're very sensitive to size increases. If this is intended, please update This is a size regression. It adds 36 bytes to lit-html.js which is 7,220B at head. We're very sensitive to size increases. If this is intended, please update |
36 bytes well spent! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Similar to: #2642
Thank you @rictic for proposing this!
NOTE: changing technique to a branding tag function.