Skip to content

Commit

Permalink
perf(sync): set higher class cache (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware authored Nov 5, 2023
1 parent 682bead commit ee5f2a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"central.class_cache_size": {
"description": "Size of class cache, must be a positive integer.",
"privacy": "Public",
"value": 30
"value": 100
},
"central.concurrent_requests": {
"description": "Maximum number of concurrent requests to Starknet feeder-gateway for getting a type of data (for example, blocks).",
Expand Down Expand Up @@ -209,4 +209,4 @@
"privacy": "Public",
"value": 1000
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ expression: dumped_default_config
"central.class_cache_size": {
"description": "Size of class cache, must be a positive integer.",
"value": {
"$serde_json::private::Number": "30"
"$serde_json::private::Number": "100"
},
"privacy": "Public"
},
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_sync/src/sources/central.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Default for CentralSourceConfig {
max_state_updates_to_download: 20,
max_state_updates_to_store_in_memory: 20,
max_classes_to_download: 20,
class_cache_size: 30,
class_cache_size: 100,
retry_config: RetryConfig {
retry_base_millis: 30,
retry_max_delay_millis: 30000,
Expand Down

0 comments on commit ee5f2a9

Please sign in to comment.