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

Enable parallel runtimes #3299

Merged
merged 3 commits into from
Jan 23, 2021
Merged

Conversation

nzpr
Copy link
Collaborator

@nzpr nzpr commented Jan 14, 2021

This PR enables parallel Runtimes to be constructed, which is a requirement for block merge.

This is a very simple minimal working fix, heavy refactoring of RSpace/ReplayRspace/RSpaceOps still needed.

The commit with adding syntax is not related to this, but as this PR is an attempt to split the huge #3238, it is small enough, so I decided to make it accompany the parallel runtimes commit.

@nzpr nzpr added this to the v0.11 Block merging milestone Jan 14, 2021
@nzpr nzpr added enhancement feature-branch Development parallel to dev branch labels Jan 14, 2021
@nzpr
Copy link
Collaborator Author

nzpr commented Jan 17, 2021

Two tests failing are inherited from block-merge branch, see #3277

@nzpr nzpr requested review from zsluedem and tgrospic and removed request for zsluedem January 17, 2021 19:49
@nzpr nzpr linked an issue Jan 17, 2021 that may be closed by this pull request
@@ -315,6 +315,16 @@ class ReplayRSpace[F[_]: Sync, C, P, A, K](
comms.tailRecM(go).map(_.toOption)
}

def spawn: F[IReplaySpace[F, C, P, A, K]] = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should keep the idea of manager to spawn new instance like KeyValueStoreManger and RUntimeManager.

@zsluedem
Copy link
Collaborator

I am thinking maybe I should follow your path and merge it first then clear things up later. Others can not easily code something into this feature branch now.

Copy link
Collaborator

@zsluedem zsluedem left a comment

Choose a reason for hiding this comment

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

I am going to approve this one and let's polish it later with some other prs. I am sorry to be picky on the details with previous pr. I found that I should work with your pace instead of my pace which would make it easier for me to make pr on the branch. In that way , I can help you fix tests, too.

@nzpr nzpr merged commit ab65a3d into rchain:feature/block-merge Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature-branch Development parallel to dev branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable parallel execution of non-conflicting deploys
2 participants