Skip to content

Use snapshots in cw4-group#165

Merged
ethanfrey merged 7 commits intosnapshot-modulefrom
snapshot-cw4
Dec 10, 2020
Merged

Use snapshots in cw4-group#165
ethanfrey merged 7 commits intosnapshot-modulefrom
snapshot-cw4

Conversation

@ethanfrey
Copy link
Copy Markdown
Contributor

@ethanfrey ethanfrey commented Dec 10, 2020

Closes #162

I think this implements the version you preferred. Snapshotting in cw4-group and not relying on the hooks.

It does seem simpler (now that I put all the work into #161). Happy for your feedback or suggestions how to improve it.

I considered a new PR to investigate allowing only selected checkpoints for less writes. But this doesn't work in cw4-group, because who do we trust to control these? By removing old snapshots, you could invalidate a proposal in progress...

@ethanfrey ethanfrey changed the base branch from master to snapshot-module December 10, 2020 00:54
@ethanfrey ethanfrey requested a review from maurolacy December 10, 2020 01:13
@ethanfrey ethanfrey marked this pull request as ready for review December 10, 2020 01:15
@ethanfrey ethanfrey mentioned this pull request Dec 10, 2020
4 tasks
Copy link
Copy Markdown
Contributor

@maurolacy maurolacy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good. Nice how "subclassing" of SnapshotMap from Map made the code changes straightforward here.

I also think this version is better / simpler, as it requires less interactions.

@ethanfrey ethanfrey merged commit b4865bc into snapshot-module Dec 10, 2020
@ethanfrey ethanfrey deleted the snapshot-cw4 branch December 10, 2020 21:28
@ethanfrey ethanfrey restored the snapshot-cw4 branch December 10, 2020 21:30
@ethanfrey ethanfrey mentioned this pull request Dec 10, 2020
@ethanfrey ethanfrey deleted the snapshot-cw4 branch December 10, 2020 21:31
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.

Don't use hooks for snapshotting on cw3-cw4 interface

2 participants