Unverified Commit 668f710a authored by lunik1's avatar lunik1
Browse files

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
parent fcca3aaa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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")