mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 07:54:19 +01:00
Merge 'Fix performance regression in prepare' from Piotr Rżysko
Attempt at fixing https://github.com/tursodatabase/turso/issues/2527. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #2532
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -4233,6 +4233,7 @@ dependencies = [
|
||||
"lru",
|
||||
"memory-stats",
|
||||
"miette",
|
||||
"mimalloc",
|
||||
"pack1",
|
||||
"parking_lot",
|
||||
"paste",
|
||||
|
||||
@@ -98,6 +98,7 @@ env_logger = "0.11.6"
|
||||
test-log = { version = "0.2.17", features = ["trace"] }
|
||||
lru = "0.14.0"
|
||||
sorted-vec = "0.8.6"
|
||||
mimalloc = { version = "0.1.46", default-features = false }
|
||||
|
||||
[[bench]]
|
||||
name = "benchmark"
|
||||
|
||||
@@ -3,6 +3,10 @@ use pprof::criterion::{Output, PProfProfiler};
|
||||
use std::{sync::Arc, time::Instant};
|
||||
use turso_core::{Database, PlatformIO};
|
||||
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
fn rusqlite_open() -> rusqlite::Connection {
|
||||
let sqlite_conn = rusqlite::Connection::open("../testing/testing.db").unwrap();
|
||||
sqlite_conn
|
||||
|
||||
Reference in New Issue
Block a user