George Hu pushed to branch main at Arch Linux / Packaging / Packages / yazi
Commits: 0e7a1cb2 by George Hu at 2026-06-14T22:10:45+08:00 Switch to bundled jemalloc to reduce memory usage The system-provided jemalloc uses default value for the `narenas` option, causing Yazi to allocate excessive memory. Upstream Yazi sets the `narenas` option to 1 in its bundled jemalloc. Switch to the bundled copy to match upstream behavior and avoid high memory usage. Related issue: https://github.com/sxyazi/yazi/issues/1672 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -9,7 +9,6 @@ pkgbase = yazi makedepends = imagemagick depends = glibc depends = hicolor-icon-theme - depends = jemalloc depends = libgcc depends = lua depends = oniguruma ===================================== PKGBUILD ===================================== @@ -10,7 +10,7 @@ pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O" url="https://github.com/sxyazi/yazi" arch=("x86_64") license=('MIT') -depends=('glibc' 'hicolor-icon-theme' 'jemalloc' 'libgcc' 'lua' 'oniguruma' 'ttf-font-nerd') +depends=('glibc' 'hicolor-icon-theme' 'libgcc' 'lua' 'oniguruma' 'ttf-font-nerd') optdepends=( 'ffmpeg: for video thumbnails' '7zip: for archive extraction and preview' @@ -48,16 +48,12 @@ build() { export VERGEN_GIT_SHA="Arch Linux" export YAZI_GEN_COMPLETIONS=true export RUSTONIG_DYNAMIC_LIBONIG=1 - export JEMALLOC_OVERRIDE=/usr/lib/libjemalloc.so - export CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 cargo build --release --frozen --no-default-features } check() { cd "$pkgname-$pkgver" export RUSTONIG_DYNAMIC_LIBONIG=1 - export JEMALLOC_OVERRIDE=/usr/lib/libjemalloc.so - export CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 cargo test --frozen --workspace --no-default-features } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/yazi/-/commit/0e7a1cb22b1b5e2946edcdbc6807f771be140268 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/yazi/-/commit/0e7a1cb22b1b5e2946edcdbc6807f771be140268 You're receiving this email because of your account on gitlab.archlinux.org. Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications | Help: https://gitlab.archlinux.org/help
