Skip to content

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