Use the mimalloc allocator.

This commit is contained in:
Kavin
2023-05-23 04:03:52 +01:00
parent f4617959ba
commit ab1f54bf51
3 changed files with 25 additions and 0 deletions
+4
View File
@@ -4,11 +4,15 @@ use std::error::Error;
use actix_web::{App, HttpRequest, HttpResponse, HttpResponseBuilder, HttpServer, web};
use actix_web::http::Method;
use image::EncodableLayout;
use mimalloc::MiMalloc;
use once_cell::sync::Lazy;
use qstring::QString;
use regex::Regex;
use reqwest::{Client, Request, Url};
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
println!("Running server!");