From c8fa38d8a3b7a4502f88a175b9b7ba0dca237d9e Mon Sep 17 00:00:00 2001 From: ratankaliani Date: Thu, 3 Oct 2024 19:59:03 +0000 Subject: [PATCH] add --- scripts/utils/bin/cost_estimator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils/bin/cost_estimator.rs b/scripts/utils/bin/cost_estimator.rs index b06c904b..2c13548e 100644 --- a/scripts/utils/bin/cost_estimator.rs +++ b/scripts/utils/bin/cost_estimator.rs @@ -12,13 +12,13 @@ use op_succinct_host_utils::{ use rayon::iter::{IntoParallelRefIterator, ParallelIterator}; use serde::{Deserialize, Serialize}; use sp1_sdk::{utils, ProverClient}; -use std::sync::{Arc, Mutex}; use std::{ cmp::{max, min}, collections::HashMap, fs::{self}, future::Future, path::PathBuf, + sync::{Arc, Mutex}, time::Instant, }; use tokio::task::block_in_place; @@ -91,7 +91,7 @@ async fn run_native_data_generation( data_fetcher: &OPSuccinctDataFetcher, split_ranges: &[SpanBatchRange], ) -> Vec { - const CONCURRENT_NATIVE_HOST_RUNNERS: usize = 15; + const CONCURRENT_NATIVE_HOST_RUNNERS: usize = 20; // Split the entire range into chunks of size CONCURRENT_NATIVE_HOST_RUNNERS and process chunks // serially. Generate witnesses within each chunk in parallel. This prevents the RPC from