build: link jemalloc by default to reduce heap fragmentation

The QML engine and the quickshell reloader both cause large amounts of
heap fragmentation that stacks up over time, leading to a perceived
memory leak. Jemalloc is able to handle the fragmentation much better,
leading to lower user facing memory usage.
This commit is contained in:
outfoxxed 2024-05-31 01:28:35 -07:00
parent d56c07ceb3
commit a8506edbb9
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 24 additions and 7 deletions

View file

@ -63,10 +63,13 @@ To build quickshell at all, you will need the following packages (names may vary
- just
- cmake
- ninja
- pkg-config
- Qt6 [ QtBase, QtDeclarative ]
Jemalloc is recommended, in which case you will need:
- jemalloc
To build with wayland support you will additionally need:
- pkg-config
- wayland
- wayland-scanner (may be part of wayland on some distros)
- wayland-protocols