Skip to content

Investigate special-casing algorithm for some pathological cases #143

Description

@botandrose

I want to investigate the following morphs, how they perform now, and if we can improve performance by special-casing any of them:

Setup: A <ul> with 100 <li> children

  1. Append a new item to the end
  2. Remove the last item
  3. Prepend a new item to the beginning
  4. Remove the first item
  5. Insert a new item in the middle
  6. Remove the middle item

I think the current algorithm will do very well on some of these, and terrible on others. I'd like to see if we can improve performance by doing a little planning at the beginning of morphChildren, and then selecting a more optimal strategy.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions