Skip to content

Calling innerHTML setter with text-only data is inefficient #25892

Closed

Description

@jdm

babylon's FPS counter appears to be updated with with innerHTML setter, which goes to a lot of extra work to end up attaching a new text node to the element. While it would be nice use the textContent setter instead, we should see if there's a way to optimize the current setter for short strings that don't contain <.

Activity

  1. added
    I-perf-slow
    on Mar 4, 2020
  2. added a commit that references this issue on May 3, 2020
    4fec5d6
  3. added a commit that references this issue on May 3, 2020
    3e00866
  4. added a commit that references this issue on May 3, 2020
    207c477
  5. added a commit that references this issue on May 3, 2020
    31ad6e1
  6. added a commit that references this issue on May 3, 2020
    f01801d
  7. added a commit that references this issue on May 3, 2020
    0a774b7
  8. added a commit that references this issue on May 4, 2020
    1b2464b
  9. added a commit that references this issue on May 4, 2020
    271ff16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-perf-slow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions