Skip to content

Don't destroy/recreate views on each reposition #1

@tarqd

Description

@tarqd

Using a Least-Common-Sequence algorithm such as that employed by benjamine/jsondiffpatch or Polymer/observe-js you can avoid having to recreate the elements on each reposition. You'd just need to apply the appropriate splices (or adds/removes) and only need to recreate views for newly added elements.

I've seperated the array diff/patch algorithms from jsondiffpatch in this library. (doesn't work with current versions of reactive though) which may be useful.

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