Added mimalloc as allocator
This commit is contained in:
parent
505907d3a1
commit
a6b1b0ff76
3 changed files with 24 additions and 1 deletions
|
|
@ -28,6 +28,9 @@ pub mod errors;
|
|||
pub mod guards;
|
||||
pub(crate) mod schema;
|
||||
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
#[database("postgres_rb")]
|
||||
pub struct RbDbConn(diesel::PgConnection);
|
||||
|
||||
|
|
|
|||
Reference in a new issue