DESCRIPTION

Bug 502084 - Computed<List|Set|Value> cannot be bound to another
observable in a different realm

All diffs are now calculated eagerly instead of lazily.

Change-Id: I83cd5b68185d2b79226df541c0090429e7d5da64
Signed-off-by: June Yoder xxx@xxx.xxx

COMMENTS

author: June Yoder
date: 2017-06-17 20:16:04.000000000

Uploaded patch set 3.

-------------------------------------
author: Brenden Conley
date: 2017-06-17 20:16:10.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/12945/

-------------------------------------
author: June Yoder
date: 2017-06-17 20:19:00.000000000

Patch Set 3:

(1 comment)

Line:249, bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/list/ComputedList.java -> I moved that code, because that was also done for the ComputedSet by Bug 414297. By looking at the code, the described behavior can also occur for a ComputedList.

-------------------------------------
author: Brenden Conley
date: 2017-06-17 20:41:02.000000000

Patch Set 3: Code-Review-1

Build Unstable 

https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/12945/ : UNSTABLE

-------------------------------------
author: Kelly Potter
date: 2017-06-19 16:03:57.000000000

Patch Set 3: Code-Review-2

Computing the diffs eagerly means that if a computed list depends on N inputs that all change at once, it will recompute the list N times.

In the very common case where a list of N elements is computed from N input observables, this reduces a typical update time (in the case where all inputs changed) from O(n) to O(n^2).

To handle cross-realm bindings efficiently, the observables in one realm should copy their state asynchronously to an observable in another realm, and the code that accesses each observable should be allowed to assume that the observable is in the same realm as the caller.

This eliminates the need for eager updates or excessive synchronization.

-------------------------------------
author: June Yoder
date: 2017-06-29 19:59:37.000000000

Abandoned

Eager calculation of diffs unwanted (see bug comments).

-------------------------------------
