diff --git a/CHANGELOG.md b/CHANGELOG.md index b6fc20705b8..55e880c1802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Perf +### 2025-11-17 + +- Configure BlobDB cache for account bytecodes [#5366](https://github.com/lambdaclass/ethrex/pull/5366) + ### 2025-11-13 - Use specialized DUP implementation [#5324](https://github.com/lambdaclass/ethrex/pull/5324) diff --git a/crates/storage/store_db/rocksdb.rs b/crates/storage/store_db/rocksdb.rs index 4792bd446fd..07a8a6a2807 100644 --- a/crates/storage/store_db/rocksdb.rs +++ b/crates/storage/store_db/rocksdb.rs @@ -312,6 +312,9 @@ impl Store { cf_opts.set_min_blob_size(32); cf_opts.set_blob_compression_type(rocksdb::DBCompressionType::Lz4); + let blob_cache = rocksdb::Cache::new_lru_cache(128 * 1024 * 1024); // 128MB + cf_opts.set_blob_cache(&blob_cache); + let mut block_opts = BlockBasedOptions::default(); block_opts.set_block_size(32 * 1024); // 32KB cf_opts.set_block_based_table_factory(&block_opts);