From 67c1d1b3054ca8453b436ba40dbf23ae252768f3 Mon Sep 17 00:00:00 2001 From: Artjoms Iskovs Date: Mon, 29 Aug 2022 17:38:55 +0100 Subject: [PATCH] Revert "Use mimalloc in line with datafusion-cli" On Fly.io's free tier (with the 256MB limit), it causes OOM errors when doing `CREATE EXTERNAL TABLE` + `CREATE TABLE AS`, so disabling it for now. This reverts commit 4b89565935d23f97a2c2e56bb2abbec9c1a6e13e. --- Cargo.toml | 1 - src/main.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c83b2749..4d387059 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,6 @@ hashbrown = { version = "0.12", features = ["raw"] } hex = ">=0.4.0" itertools = ">=0.10.0" log = "0.4" -mimalloc = { version = "*", default-features = false } moka = { version = "0.9.3", default_features = false, features = ["future", "atomic64", "quanta"] } object_store = "0.3.0" pretty_env_logger = "0.4" diff --git a/src/main.rs b/src/main.rs index 441822c1..57901322 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,6 @@ use std::{ use clap::Parser; use futures::{future::join_all, Future, FutureExt}; -use mimalloc::MiMalloc; use pretty_env_logger::env_logger; use seafowl::{ @@ -30,9 +29,6 @@ use tokio::sync::broadcast::{channel, Sender}; #[cfg(feature = "frontend-postgres")] use seafowl::frontend::postgres::run_pg_server; -#[global_allocator] -static GLOBAL: MiMalloc = MiMalloc; - extern crate pretty_env_logger; #[macro_use] extern crate log;