diff --git a/.gitignore b/.gitignore index ab94b288f6..2491798134 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.idea/ /.vagrant +/flamegraph.svg /index.lmdb /index.redb /ord.log diff --git a/justfile b/justfile index 4d22f7d25e..b3bdb09dbb 100644 --- a/justfile +++ b/justfile @@ -93,3 +93,6 @@ download-log host="ordinals.com": graph: ./bin/graph ord.log + +flamegraph: + CARGO_PROFILE_RELEASE_DEBUG=true sudo cargo flamegraph -- index diff --git a/src/index.rs b/src/index.rs index 6a8479417b..e639de7919 100644 --- a/src/index.rs +++ b/src/index.rs @@ -186,7 +186,6 @@ impl Index { let txdata = block .txdata - .as_slice() .par_iter() .map(|tx| (tx.txid(), tx)) .collect::>();