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 23, 2024
1 parent 098aed5 commit ece72bd
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 @@ -238,12 +238,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 ece72bd

Please sign in to comment.