Skip to content

Instantly share code, notes, and snippets.

@adujardin
Last active July 19, 2023 15:04
Show Gist options
  • Save adujardin/2b6caf86375b5d9b50de23b6d9ad3652 to your computer and use it in GitHub Desktop.
Save adujardin/2b6caf86375b5d9b50de23b6d9ad3652 to your computer and use it in GitHub Desktop.
Install mimalloc
# https://github.com/microsoft/mimalloc
VERSION="1.8.2"
wget https://github.com/microsoft/mimalloc/archive/refs/tags/v${VERSION}.zip
unzip v${VERSION}.zip
cd mimalloc-${VERSION}
mkdir build ; cd build ; cmake .. ; make -j ; sudo make install
cd ../../
rm -rf v${VERSION}.zip mimalloc-${VERSION}
sudo ln -s /usr/local/lib/libmimalloc.so /usr/lib/libmimalloc.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment