Variable: inhibit-compacting-font-caches

inhibit-compacting-font-caches is a variable defined in font.c.

Value

nil

Documentation

If non-nil, don't compact font caches during GC.

Some large fonts cause lots of consing and trigger GC. If they are removed from the font caches, they will need to be opened again during redisplay, which slows down redisplay. If you see font-related delays in displaying some special characters, and cannot switch to a smaller font for those characters, set this variable non-nil. Disabling compaction of font caches might enlarge the Emacs memory footprint in sessions that use lots of different fonts.

Probably introduced at or before Emacs version 25.2.

Source Code

// Defined in /usr/src/emacs/src/font.c
  DEFVAR_BOOL ("inhibit-compacting-font-caches", inhibit_compacting_font_caches,
	       doc: /*
If non-nil, don't compact font caches during GC.
Some large fonts cause lots of consing and trigger GC.  If they
are removed from the font caches, they will need to be opened
again during redisplay, which slows down redisplay.  If you
see font-related delays in displaying some special characters,
and cannot switch to a smaller font for those characters, set
this variable non-nil.
Disabling compaction of font caches might enlarge the Emacs memory
footprint in sessions that use lots of different fonts.  */);