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

Optimize query phase #58

Open
3 tasks
DrSensor opened this issue Jan 21, 2023 · 0 comments
Open
3 tasks

Optimize query phase #58

DrSensor opened this issue Jan 21, 2023 · 0 comments
Labels
optimization Because speed, memory consumption, and bundle size are important priority: medium Something that should be tackled

Comments

@DrSensor
Copy link
Owner

DrSensor commented Jan 21, 2023

  • benchmark RegExp1 matches innerHTML solution on small <render-scope>
  • benchmark querySelectorAll() solution on small <render-scope>
  • compare 32 approaches on big <render-scope>

Footnotes

  1. In JS, regex sometimes faster than for loop check

  2. Current implementation use shadow.getElementNamesByTag(*)

@DrSensor DrSensor added optimization Because speed, memory consumption, and bundle size are important priority: medium Something that should be tackled labels Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Because speed, memory consumption, and bundle size are important priority: medium Something that should be tackled
Projects
None yet
Development

No branches or pull requests

1 participant