Skip to content

Commit

Permalink
Update TransactionExecutorConfig concurrency settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Aug 21, 2024
1 parent ab361f8 commit f444f4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vm/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@ pub extern "C" fn cairoVMExecute(

let mut trace_buffer = Vec::with_capacity(10_000);

let n_workers = num_cpus::get() / 2;
// Initialize the TransactionExecutor
let config = TransactionExecutorConfig {
concurrency_config: ConcurrencyConfig {
enabled: concurrency_mode,
chunk_size: 10, // adjust chunk size as needed
n_workers: 4, // adjust number of workers as needed
chunk_size: n_workers * 3,
n_workers,
},
};

Expand Down

0 comments on commit f444f4a

Please sign in to comment.