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

Optimizing Compiler #112

Closed
6 of 7 tasks
sxzz opened this issue Feb 2, 2024 · 1 comment
Closed
6 of 7 tasks

Optimizing Compiler #112

sxzz opened this issue Feb 2, 2024 · 1 comment
Assignees
Labels

Comments

@sxzz
Copy link
Member

sxzz commented Feb 2, 2024

  • children 985d4c7
    • don't walk the entire dom tree
    • const node = children(node, ...paths)
    • e.g const n1 = children(t0, 1, 2, 3) -> t0.childNodes[1].childNodes[2].childNodes[3]
  • hoist template d10a1a3
  • template abbreviation of end tag
  • effect grouping [needs benchmark]
    • group by expression?
    • group by node?
  • simplify v-on 38865c7
    • check undefined
    • put withKeys / withModifers inside of on
  • grouping multiple interpolations 14813ce 68b0caf
  • simplify renderEffect with a single statement 9ffd4b6
     _renderEffect(() => {
       _setText(n9, _ctx.remaining)
     })
  • return Fragment directly, without inserting/appending/prepending 99da2e5
@sxzz
Copy link
Member Author

sxzz commented Apr 17, 2024

Track #166 for template abbreviation

@sxzz sxzz closed this as completed Apr 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants