From 668f710aee9221e2fdf5756b83bd9dc44ac205e0 Mon Sep 17 00:00:00 2001 From: lunik1 Date: Thu, 2 Oct 2025 23:50:49 +0100 Subject: [PATCH] emacs: disable gc mark trace by default This speeds up garbage collection by ~5%[1] but makes it harder to find GC-related bugs. [1] emacs NEWS.30 --- pkgs/applications/editors/emacs/make-emacs.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index f1505d45f4f9..9205cae9bf2e 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -74,6 +74,7 @@ withCairo ? withX, withCsrc ? true, withDbus ? stdenv.hostPlatform.isLinux, + withGcMarkTrace ? false, # increase gc performance for reduced debugability withGTK3 ? withPgtk && !noGui, withGlibNetworking ? withPgtk || withGTK3 || (withX && withXwidgets), withGpm ? stdenv.hostPlatform.isLinux, @@ -408,6 +409,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.withFeature withNS "ns") ] ++ [ + (lib.enableFeature withGcMarkTrace "gc-mark-trace") (lib.withFeature withCompressInstall "compress-install") (lib.withFeature withToolkitScrollBars "toolkit-scroll-bars") (lib.withFeature withNativeCompilation "native-compilation")