Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Jun 4, 2020

No description provided.

@NikVolf NikVolf added the A0-please_review Pull request needs code review. label Jun 4, 2020
fn prepare_batch(&mut self) -> Vec<ExHash<Api>> {
let mut queued_exts = Vec::new();
let mut left = BACKGROUND_REVALIDATION_BATCH_SIZE;
let mut left = std::cmp::max(BACKGROUND_REVALIDATION_BATCH_SIZE, self.members.len() / 4);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This need to be dependant on the revalidation size, otherwise under high load revalidation queue bloats

With this back-exponental it will dissolve faster right after block event comes and slower closer to the next block

@NikVolf NikVolf force-pushed the nv-bench-branch branch from 4a677b0 to aa6dd5e Compare June 4, 2020 12:28
@NikVolf NikVolf closed this Jun 4, 2020
@bkchr bkchr deleted the nv-bench-branch branch June 4, 2020 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants