meedstrom,
@meedstrom@emacs.ch avatar

So I found a situation where emacs -Q runs a loop 60x slower than my personal Doom Emacs config!

Any wizard who might have an idea why? It's as if it's garbage-collecting for a whole minute. It's not the loop itself that's slow, because it actually completes all iterations, and only then does Emacs hang.

kakafarm,
@kakafarm@emacs.ch avatar

@meedstrom I want to know!

louis,
@louis@emacs.ch avatar

@kakafarm @meedstrom Emacs has a very low GC threshold per default.

Some do have this in an early init file:

(setq gc-cons-threshold (* 1024 1024 100)) ; 100 MiB

Or even higher to make sure the startup is fast.

meedstrom,
@meedstrom@emacs.ch avatar

@louis @kakafarm I just learned that a too big chunk of garbage invites something called OS paging... That's why gcmh-mode uses 16 MB as the "high" value.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • thenastyranch
  • ngwrru68w68
  • megavids
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • provamag3
  • JUstTest
  • All magazines