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

Add 'latest' CRDT, make UI update quicker. #628

Merged
merged 2 commits into from
Nov 9, 2015
Merged

Add 'latest' CRDT, make UI update quicker. #628

merged 2 commits into from
Nov 9, 2015

Conversation

tomwilkie
Copy link
Contributor

The idea is to have an alternative to the metadata map on each node, where the merge results are deterministic (pick the latest value). This should allow us to propagate state changes faster in the UI, as we don't have to wait for the 15s window to pass.

Also using this as an opportunity to try some of the persistent datatypes, to help address #502.

@tomwilkie tomwilkie self-assigned this Nov 5, 2015
@tomwilkie tomwilkie added this to the 0.10.0 milestone Nov 5, 2015
@tomwilkie tomwilkie force-pushed the latest-map branch 2 times, most recently from 1d46b66 to 5dd87bd Compare November 6, 2015 13:47
@tomwilkie tomwilkie changed the title [WIP] Add 'latest' CRDT Add 'latest' CRDT, make UI update quicker. Nov 6, 2015
@tomwilkie tomwilkie removed their assignment Nov 6, 2015
Also use same technique to merge the controls, returning the latest
set of controls instead of the union.
cp.Node.Edges = report.EdgeMetadatas{} // snip
cp.Node.Sets = report.Sets{} // snip
cp.Node.Controls = report.NodeControls{} // snip
cp.Node.Latest = report.LatestMap{} // snip

This comment was marked as abuse.

This comment was marked as abuse.

@paulbellamy paulbellamy mentioned this pull request Nov 9, 2015
5 tasks
@paulbellamy
Copy link
Contributor

LGTM

tomwilkie added a commit that referenced this pull request Nov 9, 2015
Add 'latest' CRDT, make UI update quicker.
@tomwilkie tomwilkie merged commit 8dbc586 into master Nov 9, 2015
@tomwilkie tomwilkie deleted the latest-map branch November 9, 2015 16:10
@tomwilkie tomwilkie removed this from the 0.10.0 milestone Nov 11, 2015
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

Successfully merging this pull request may close these issues.

2 participants