From 2b52ecf2efe4a83af3f65314728bcd0bc196ae0a Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 8 Aug 2022 10:42:10 -0400 Subject: [PATCH] perf (vs): Supress repeated 'is_dirty' updates Before the updates reach the dispatcher thread --- src/client/spark/AW2/ViewModel/Grid/VolGridCellVM.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/spark/AW2/ViewModel/Grid/VolGridCellVM.cs b/src/client/spark/AW2/ViewModel/Grid/VolGridCellVM.cs index 9644c494b..f88d613b1 100644 --- a/src/client/spark/AW2/ViewModel/Grid/VolGridCellVM.cs +++ b/src/client/spark/AW2/ViewModel/Grid/VolGridCellVM.cs @@ -19,6 +19,7 @@ namespace mbts.spark { _committed_value.observe_current(true) .CombineLatest(_candidate_value.observe_current(true)) .Select(tup => !Equals(tup.First, tup.Second)) + .DistinctUntilChanged() .OnDispatcher()); }