Subject: bug#32159: 26.1; inhibit-compacting-font-caches does not fix all fonts lagging issue

From: Moses <[email-masked]>
Date: Sun, 15 Jul 2018 00:02:13 +0000

For bug#24938, I have to set inhibit-compacting-font-caches to non-nil
[0] to fix the lagging issue. It fixes almost but not all the
problems. Lagging reappears when I opening a multi languages file
(e.g. M-x view-hello-file),  Emacs could become very very slow until
the file is completely opened.

This issue may need another fix.

In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30 built on CIRROCUMULUS
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor 'Microsoft Corp.', version 10.0.17134

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp936

Major mode: Fundamental

Minor modes in effect:
  erc-spelling-mode: t
  erc-netsplit-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-log-mode: t
  erc-stamp-mode: t
  erc-ring-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  delete-selection-mode: t
  show-paren-mode: t
  display-time-mode: t
  auto-image-file-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t

Memory information:
((conses 16 689409 87539)
 (symbols 56 46936 1)
 (miscs 48 72 133)
 (strings 32 85086 25863)
 (string-bytes 1 1976295)
 (vectors 16 48121)
 (vector-slots 8 1152206 20738)
 (floats 8 237 89)
 (intervals 56 21696 8137)
 (buffers 992 16))

[0] https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-11/msg00471.html