mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
core: Switch to parking_lot for RwLock
We really need to make the WAL lock less expensive, but switching to `parking_lot` is anyway something we should do. Before: ``` Execute `SELECT 1`/Limbo time: [56.230 ns 56.463 ns 56.688 ns] ``` After: ``` Execute `SELECT 1`/Limbo time: [52.003 ns 52.132 ns 52.287 ns] ```
This commit is contained in:
parent
750164fb85
commit
e4d7474372
6 changed files with 39 additions and 31 deletions
|
@ -24,13 +24,14 @@ use fallible_iterator::FallibleIterator;
|
|||
use libloading::{Library, Symbol};
|
||||
use limbo_ext::{ExtensionApi, ExtensionEntryPoint};
|
||||
use log::trace;
|
||||
use parking_lot::RwLock;
|
||||
use schema::Schema;
|
||||
use sqlite3_parser::ast;
|
||||
use sqlite3_parser::{ast::Cmd, lexer::sql::Parser};
|
||||
use std::cell::Cell;
|
||||
use std::collections::HashMap;
|
||||
use std::num::NonZero;
|
||||
use std::sync::{Arc, OnceLock, RwLock};
|
||||
use std::sync::{Arc, OnceLock};
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
use storage::btree::btree_init_page;
|
||||
#[cfg(feature = "fs")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue