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

WIP: Parallelize Invariants #12775

Closed
wants to merge 1 commit into from
Closed

Conversation

jackzampolin
Copy link
Member

Need to test this, and maybe this is too dumb but worth trying at least.

n := len(invarRoutes)
var (
logger = k.Logger(ctx)
start = time.Now()

Check warning

Code scanning / CodeQL

Calling the system time

Calling the system time may be a possible source of non-determinism
@dimiandre
Copy link
Member

I think it's only the can-withdraw to be super slow, all the other invariants get completed quite quickly

@tac0turtle
Copy link
Member

I think it's only the can-withdraw to be super slow, all the other invariants get completed quite quickly

This is my understanding as well. #9876 this encapsulates that's

Comment on lines +102 to 105
if err := eg.Wait(); err != nil {
panic(err)
}
}

Choose a reason for hiding this comment

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

Suggested change
if err := eg.Wait(); err != nil {
panic(err)
}
}
}
if err := eg.Wait(); err != nil {
panic(err)
}

Choose a reason for hiding this comment

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

This code needs tests.

@tac0turtle
Copy link
Member

closing this as @odeke-em and team are working on fixing the performance

@tac0turtle tac0turtle closed this Aug 4, 2022
@tac0turtle tac0turtle deleted the jack/invariant-parallelization branch August 4, 2022 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants