Skip to content

Commit

Permalink
chore: jemallocator is no longer faster
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Nov 21, 2023
1 parent 04904ca commit 171c3ce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ include = ["README.md", "LICENSE", "src/", "examples/", "schema.sql"]
[features]
default = ["db"]

# jemallocator: use the allocator (e.g. in examples), 30% speedup

# enable the database writing code
db = ["rusqlite"]

Expand All @@ -35,10 +33,6 @@ features = ["bundled"]
optional = true
version = "0.30"

[dependencies.jemallocator]
optional = true
version = "0.5"

[[example]]
name = "sqlite_search"
required-features = ["db"]
Expand Down
4 changes: 0 additions & 4 deletions examples/build_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ use anyhow::Result;

use nexers::db;

#[cfg(feature = "jemallocator")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

fn main() -> Result<()> {
let conn = rusqlite::Connection::open("maven.db")?;
conn.execute_batch(db::SCHEMA)?;
Expand Down
4 changes: 0 additions & 4 deletions examples/sqlite_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ use anyhow::Result;

use nexers::db;

#[cfg(feature = "jemallocator")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

fn main() -> Result<()> {
let from = io::BufReader::new(fs::File::open("sample-index")?);
let conn = rusqlite::Connection::open("search.db")?;
Expand Down

0 comments on commit 171c3ce

Please sign in to comment.