Skip to content

Commit

Permalink
perf(storage): parallelized database insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Trantorian committed Apr 23, 2024
1 parent 4a32564 commit 588692b
Show file tree
Hide file tree
Showing 15 changed files with 178 additions and 622 deletions.
18 changes: 16 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ tokio = "1.34.0"
url = "2.4.1"
rayon = "1.10.0"
arc-swap = "1.7.1"
crossbeam-skiplist = "0.1"

[patch."https://github.com/w3f/ring-vrf"]
bandersnatch_vrfs = { git = "https://github.com/w3f/ring-vrf?rev=3ddc20", version = "0.0.4", rev = "3ddc20" }
4 changes: 4 additions & 0 deletions crates/client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mp-contract = { workspace = true }
mp-felt = { workspace = true }
mp-hashers = { workspace = true }
mp-types = { workspace = true }
mp-block = { workspace = true }

# Starknet crates
blockifier = { workspace = true, features = ["testing"] }
Expand All @@ -51,8 +52,11 @@ arc-swap = { workspace = true }
bitvec = { workspace = true }
ethers = { workspace = true }
log = { workspace = true, default-features = true }
rayon = { workspace = true }
rocksdb = { version = "0.21", features = [
# "multi-threaded-cf",
] }
thiserror = { workspace = true }
crossbeam-skiplist = { workspace = true }
tokio = { workspace = true }
uuid = "1.4.1"
1 change: 1 addition & 0 deletions crates/client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub mod bonsai_db;
mod l1_handler_tx_fee;
mod meta_db;
pub mod storage_handler;
pub mod storage_updates;

pub use error::{BonsaiDbError, DbError};
pub use mapping_db::MappingCommitment;
Expand Down
Loading

0 comments on commit 588692b

Please sign in to comment.