Skip to content

Commit

Permalink
fix(server): re-add mimalloc (immich-app#7511)
Browse files Browse the repository at this point in the history
add mimalloc
  • Loading branch information
mertalev authored Feb 28, 2024
1 parent 2e56e77 commit 11de526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/start.sh
Original file line number Diff line number Diff line change
@@ -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}")"
Expand Down

0 comments on commit 11de526

Please sign in to comment.