Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance #19

Open
qwertie opened this issue Mar 14, 2020 · 0 comments
Open

Improve performance #19

qwertie opened this issue Mar 14, 2020 · 0 comments

Comments

@qwertie
Copy link

qwertie commented Mar 14, 2020

Back when I used Update Controls, I loved it, with a couple of exceptions, both performance-related:

  1. It doesn't understand lists. A list is handled the same way as a single datum, so if you've got an IndependentList<Foo> and a DependentList<FooViewModel> and you add a single item to the IndependentList, the entire DependentList is recomputed from scratch, as well as anything else that depends on it.
  2. It doesn't understand changes that have no effect. Suppose I have a Dependent<int> C that computes the maximum value of two other precedents A and B, and then I decrease the smaller precedent A. In this case C does not change, but anything that depends on C is updated anyway. Not only are the dependents updated, but there is no way to suppress this behavior.

Solving these problems is nontrivial, but I have outlined a solution to problem 2 here that appears like it would work. I wouldn't blame @michaellperry if the solution only goes into the replacement project Assisticant though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant