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

add mimalloc
This commit is contained in:
Mert 2024-02-28 18:23:48 -05:00 committed by GitHub
parent 2e56e777ce
commit 11de526bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}")"