Skip to content

Review performance impact vs react-from-markup #7

Open
@chrisvxd

Description

@chrisvxd

#3, #4 and #6 introduce various changes that are likely to impact performance.

Should review:

  1. Injection of container node for each rehydration
  2. Building of compound selector string (for loop)
  3. Querying root by compound selector string instead of data attributes
  4. Looping through each rehydrating component to find relevant rehydrator (find)
  5. Use of .matches(options.compoundSelector) instead of .hasAttribute

Rather than reviewing each item, it might be worth smoke testing react-from-html and react-from-markup to get an "ops / second (higher is better)" type comparison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions