Skip to content

Commit aeef918

Browse files
chore(blockifier): change size of channel_size contract_cache_size (#3588)
1 parent d858efe commit aeef918

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/sequencer/default_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"batcher_config.contract_class_manager_config.cairo_native_run_config.channel_size": {
138138
"description": "The size of the compilation request channel.",
139139
"privacy": "Public",
140-
"value": 1000
140+
"value": 2000
141141
},
142142
"batcher_config.contract_class_manager_config.cairo_native_run_config.run_cairo_native": {
143143
"description": "Enables Cairo native execution.",
@@ -152,7 +152,7 @@
152152
"batcher_config.contract_class_manager_config.contract_cache_size": {
153153
"description": "The size of the global contract cache.",
154154
"privacy": "Public",
155-
"value": 400
155+
"value": 600
156156
},
157157
"batcher_config.contract_class_manager_config.native_compiler_config.max_casm_bytecode_size": {
158158
"description": "Limitation of compiled casm bytecode size.",

crates/blockifier/src/state/contract_class_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::execution::native::contract_class::NativeCompiledClassV1;
2727
#[cfg(feature = "cairo_native")]
2828
use crate::state::global_cache::CachedCairoNative;
2929
use crate::state::global_cache::{CachedCasm, ContractCaches};
30-
pub const DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE: usize = 1000;
30+
pub const DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE: usize = 2000;
3131

3232
/// Represents a request to compile a sierra contract class to a native compiled class.
3333
///

crates/blockifier/src/state/global_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum CachedCairoNative {
3636
CompilationFailed,
3737
}
3838

39-
pub const GLOBAL_CONTRACT_CACHE_SIZE_FOR_TEST: usize = 400;
39+
pub const GLOBAL_CONTRACT_CACHE_SIZE_FOR_TEST: usize = 600;
4040

4141
impl<T: Clone> GlobalContractCache<T> {
4242
/// Locks the cache for atomic access. Although conceptually shared, writing to this cache is

0 commit comments

Comments
 (0)