Skip to content

Add supportArraysForHtml transformer #108

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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

jfmengels
Copy link
Contributor

@jfmengels jfmengels commented Jan 3, 2023

I ran this on this benchmark and got around a 60% performance increase on Chrome, and a 50% increase on Firefox.

Explanation of the transformer can be found at the top of supportArraysForHtml.ts.

More work can (and probably should) be done to increase the number of places that this transformation applies (doesn't apply to SVG or custom nodes for instance).

I have not yet tested this extensively on a codebase.

The idea for this optimization was pitched to me by @evancz a while ago.

@jfmengels jfmengels force-pushed the html-array-exploration branch from 55a540b to 52ea6a9 Compare January 3, 2023 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant