fix(server): re-add mimalloc (#7511)

add mimalloc
pull/7516/head
Mert 2024-02-28 18:23:48 +07:00 committed by GitHub
parent 2e56e777ce
commit 11de526bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

@ -1,5 +1,8 @@
#!/usr/bin/env bash
lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2"
export LD_PRELOAD="$lib_path"
read_file_and_export() {
if [ -n "${!1}" ]; then
content="$(cat "${!1}")"