From 47009ed2d3e18a20ec42e95abcd59e46a1110546 Mon Sep 17 00:00:00 2001 From: PSeitz Date: Mon, 20 Nov 2023 02:59:59 +0100 Subject: [PATCH] remove unused deps (#2264) found with cargo machete remove pprof (doesn't work) --- Cargo.toml | 4 ---- benches/index-bench.rs | 5 ++--- columnar/Cargo.toml | 1 - columnar/columnar-cli/Cargo.toml | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bf5dc14f3..d6d6b918f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,6 @@ rustc-hash = "1.1.0" thiserror = "1.0.30" htmlescape = "0.3.1" fail = { version = "0.5.0", optional = true } -murmurhash32 = "0.3.0" time = { version = "0.3.10", features = ["serde-well-known"] } smallvec = "1.8.0" rayon = "1.5.2" @@ -51,7 +50,6 @@ lru = "0.12.0" fastdivide = "0.4.0" itertools = "0.12.0" measure_time = "0.8.2" -async-trait = "0.1.53" arc-swap = "1.5.0" columnar = { version= "0.2", path="./columnar", package ="tantivy-columnar" } @@ -75,7 +73,6 @@ matches = "0.1.9" pretty_assertions = "1.2.1" proptest = "1.0.0" test-log = "0.2.10" -env_logger = "0.10.0" futures = "0.3.21" paste = "1.0.11" more-asserts = "0.3.1" @@ -83,7 +80,6 @@ rand_distr = "0.4.3" [target.'cfg(not(windows))'.dev-dependencies] criterion = { version = "0.5" } -pprof = { version= "0.13", features = ["flamegraph", "criterion"] } [dev-dependencies.fail] version = "0.5.0" diff --git a/benches/index-bench.rs b/benches/index-bench.rs index 007859597..00a181982 100644 --- a/benches/index-bench.rs +++ b/benches/index-bench.rs @@ -1,5 +1,4 @@ use criterion::{criterion_group, criterion_main, Criterion, Throughput}; -use pprof::criterion::{Output, PProfProfiler}; use tantivy::schema::{TantivyDocument, FAST, INDEXED, STORED, STRING, TEXT}; use tantivy::{tokenizer, Index, IndexWriter}; @@ -253,12 +252,12 @@ criterion_group! { } criterion_group! { name = gh_benches; - config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None))); + config = Criterion::default(); targets = gh_index_benchmark } criterion_group! { name = wiki_benches; - config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None))); + config = Criterion::default(); targets = wiki_index_benchmark } criterion_main!(benches, gh_benches, wiki_benches); diff --git a/columnar/Cargo.toml b/columnar/Cargo.toml index 6728283df..c100f185a 100644 --- a/columnar/Cargo.toml +++ b/columnar/Cargo.toml @@ -10,7 +10,6 @@ categories = ["database-implementations", "data-structures", "compression"] [dependencies] itertools = "0.12.0" -fnv = "1.0.7" fastdivide = "0.4.0" stacker = { version= "0.2", path = "../stacker", package="tantivy-stacker"} diff --git a/columnar/columnar-cli/Cargo.toml b/columnar/columnar-cli/Cargo.toml index 0c1fd9b67..277734b93 100644 --- a/columnar/columnar-cli/Cargo.toml +++ b/columnar/columnar-cli/Cargo.toml @@ -8,7 +8,6 @@ license = "MIT" columnar = {path="../", package="tantivy-columnar"} serde_json = "1" serde_json_borrow = {git="https://github.com/PSeitz/serde_json_borrow/"} -serde = "1" [workspace] members = []