Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list-view: avoid more work when keys don't change (#58)
* list-view: avoid more work when keys don't change According to existing discussion: - The removal loop does not trigger the inner conditional when the keys haven't changed anyway, because (member old-k new-keys) should always be true. - The call to change-children is redundant when the keys haven't changed because the list of children should also be the same. Thus we perform some work (looping, conditionals, and importantly a call to change-children) that is unnecessary: for performance, skip it. Close #57 Best-viewed-with: --ignore-space-change * list: avoid computing keys twice --------- Co-authored-by: Bogdan Popa <bogdan@defn.io>
- Loading branch information