Added mimalloc as allocator

This commit is contained in:
Jef Roosens 2021-09-03 16:31:06 +02:00
parent 505907d3a1
commit a6b1b0ff76
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
3 changed files with 24 additions and 1 deletions

View file

@ -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);