From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 05:17:00 2017 Received: (at submit) by debbugs.gnu.org; 12 Oct 2017 09:17:00 +0000 Received: from localhost ([127.0.0.1]:34859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Zbv-0007QY-Ow for submit@debbugs.gnu.org; Thu, 12 Oct 2017 05:17:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Zbu-0007QJ-Av for submit@debbugs.gnu.org; Thu, 12 Oct 2017 05:16:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Zbn-0001mT-Ib for submit@debbugs.gnu.org; Thu, 12 Oct 2017 05:16:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2Zbn-0001mF-EJ for submit@debbugs.gnu.org; Thu, 12 Oct 2017 05:16:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Zbi-0006vL-OQ for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 05:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Zbf-0001cr-Fu for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 05:16:46 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:45150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2Zbf-0001Zb-5r for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 05:16:43 -0400 Received: by mail-pf0-x22d.google.com with SMTP id d28so4029107pfe.2 for ; Thu, 12 Oct 2017 02:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=60hz-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q+7QD4cLHe10v16jiyb9gFF1zMeKhm9Z5N/tjN5NrC4=; b=1r/vHq7/C0MFnC/5VY91wWl96PW0U0iNdJiRkRu75vNXJcPitQu+rYQv12o90JE5V3 +0i85zN8xMNCS8v6uP2K2p1hEe+C/yi9E4HRrYadqBqi3XLurmF5WzJq81fWLJIMxV8d R3Zy4NVlHugrT8XHMbTf7ASJnngl7zVhiq5nLYb9/FqffMKPv1+32/Es9svzejihvYjo QzJVeDjxHU36Ge7NlDgVDF0+9b8wEkEX+/t3HGXsAv2a5eV7kl3y08s8AkoRp5oNWtxZ 2xxXZNMZE7cfIzcOsAilQ2Vo1lqehx2COwTGR7AXc5v8H4bhfvamidaLQmOz+BB6xsGa OjjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q+7QD4cLHe10v16jiyb9gFF1zMeKhm9Z5N/tjN5NrC4=; b=R6f2QuCK8OI6XyL3AHyZV7CiiQ3O2mwPzE8nH0+5qDsDL52grUf692i7yW73o2/6Pg a5nKSmfCohO8VEj5O/TgEFcC/i8yA8J9O/XiFBUpLaPRUIedCTbozTa9+ojoO0b3+buH NcgUA8e84fdIL7lCbN5KvZQHVYrndBnil8GDMmqUBzBoMzo+8ydiWm4dEbOvLMD9TgF4 IhdsHVe2KzK9aCswBsplMCXR3tNqT1BdQWhYy+T5Z7iX5TmZMBN6CrfZCJ4VEprQmRvD NQ/R2005ug2R4dfYnEX9OSPl0Gzxf0ooOoc1k1FwXXfqoLUtilpwwXC+iPdK79bjxpZO sCQQ== X-Gm-Message-State: AMCzsaU8S7JvKVmv5Dxb6KOB7IJgSRlRbaIWO48w3uoK87ZfuqidOUJ1 2bu7HsFSgKesROFm5FBtLv591ma8BEs= X-Google-Smtp-Source: AOwi7QDU82Z2trfni1tysO/wekw2Ra4VynK0+6pFbDDEqYabTBXbHG05flTnC8GGLv1CjK+JRL5AkQ== X-Received: by 10.159.207.134 with SMTP id z6mr1638335plo.258.1507799800517; Thu, 12 Oct 2017 02:16:40 -0700 (PDT) Received: from hayai (pl34100.ag1212.nttpc.ne.jp. [133.232.243.52]) by smtp.gmail.com with ESMTPSA id 133sm28230179pfy.2.2017.10.12.02.16.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Oct 2017 02:16:39 -0700 (PDT) From: Mark Laws To: bug-gnu-emacs@gnu.org Subject: 25.2; UTF-8 language environment causes extreme sluggishness Date: Thu, 12 Oct 2017 18:15:53 +0900 Message-ID: <86376oiv5i.fsf@60hz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) M-x set-language-environment UTF-8 M-: (insert #x2207) Then hold down C-o until you have a bunch of empty lines, and start moving around the buffer with the usual movement keys. You will notice it is very, very slow. Then delete the character from the buffer, and notice how thing= s are fast again. The issue doesn't seem to happen in the Linux console version of Emacs (even with UTF-8 set). It also does not happen in the Windows (NT) GUI version i= f the language environment is set to something other than UTF-8. I can reproduce this 100% of the time under emacs -Q with the instructions = given above. In GNU Emacs 25.2.1 (x86_64-w64-mingw32) of 2017-04-30 built on HAYAI Repository revision: d8cf7c798722e58aa4ebb9ecfcaa6724f905e18e Windowing system distributor 'Microsoft Corp.', version 10.0.14393 Configured using: 'configure --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32 --build=3Dx86_64-w64-mingw32 --prefix=3D/c/Users/mdl/local/emacs --without= -dbus --without-gconf --without-gsettings --with-modules --with-file-notificatio= n=3Dw32 CFLAGS=3D-O2 CPPFLAGS=3D-I/mingw64/include LDFLAGS=3D-L/mingw64/lib' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES W32_IME Important settings: value of $LANG: JPN locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: company-quickhelp-mode: t company-quickhelp-local-mode: t elisp-slime-nav-mode: t rainbow-mode: t flycheck-pos-tip-mode: t company-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t desktop-save-mode: t eldoc-in-minibuffer-mode: t global-form-feed-mode: t form-feed-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t whitespace-mode: t global-undo-tree-mode: t undo-tree-mode: t show-paren-mode: t global-hl-line-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Recent messages: Wrote c:/Users/mdl/AppData/Roaming/.emacs.d/elisp/mdl-loaddefs.el Loading c:/Users/mdl/AppData/Roaming/.emacs.d/elisp/mdl-loaddefs.el (source= )...done Please type y, n, or !: y Error while checking syntax automatically: (irony-server-error "irony-serve= r version mismatch: type =E2=80=98M-x irony-install-server=E2=80=99 to rein= stall") Please type y, n, or !: y Error while checking syntax automatically: (irony-server-error "irony-serve= r is broken! Invalid version syntax: =E2=80=981.1.0=E2=80=99") Please type y, n, or !: y Error while checking syntax automatically: (irony-server-error "irony-serve= r is broken! Invalid version syntax: =E2=80=981.1.0=E2=80=99") Wrote c:/Users/mdl/AppData/Roaming/.emacs.d/.emacs.desktop.lock Desktop: 3 frames, 46 buffers restored. Load-path shadows: c:/Users/mdl/AppData/Roaming/.emacs.d/elpa/seq-2.20/seq hides c:/Users/mdl/= local/emacs/share/emacs/25.2/lisp/emacs-lisp/seq Features: (shadow sort mail-extr warnings emacsbug sendmail bat-mode make-mode irony-cdb-libclang irony-cdb-json pp goto-addr view matlab derived tempo pandoc-mode pandoc-mode-utils hydra lv vc-git irony-eldoc irony-cdb-clang-complete irony-cdb modern-cpp-font-lock cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode thingatpt noutline outline jka-compr company-quickhelp fsharp-mode-font fsharp-mode-indent info-look fsharp-mode fsharp-mode-indent-smie inf-fsharp-mode fsharp-doc flycheck-fsharp fsharp-mode-completion fsharp-mode-util tramp tramp-compat tramp-loaddefs trampver ucs-normalize stupid-indent-mode clean-aindent-mode wolfram-mode s= mie autoinsert elisp-slime-nav rainbow-mode company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-css company-nxml company-bbdb company-irony company-template irony-completion irony-snippet flycheck-irony flycheck-pos-tip pos-tip flycheck find-func irony-diagnostics irony irony-iotask color company proof-site proof-autoloads pg-vars magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-comm= it magit-sequence magit-notes magit-worktree magit-branch magit-files magit-re= fs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit magit-utils crm log-edit message format-spec rfc822 mml mml-sec epg mm-deco= de mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell pcomplete p4 ps-print ps-def lpr diff-mode dired compile comint ansi-color ring server revive desktop frameset eldoc-eval form-feed easy-mm= ode whitespace-cleanup-mode whitespace ido undo-tree diff paren hl-line vlf-set= up visual-regexp-steroids advice visual-regexp dim mdl-utils mdl-loaddefs auto= load lisp-mnt tex-site edmacro kmacro gh-common gh-profile url-parse auth-source gnus-util mm-util help-fns mail-prsvr password-cache url-vars rx s marshal eieio-compat ht json map dash eieio eieio-core cl-seq cl-macs cl finder-inf= info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs cl-lib subr-x pcase time-date mule-util japan-ut= il tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-ime disp-table w32-win w32-vars term/common-win tool-ba= r dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-m= ode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple a= bbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp fil= es text-properties overlay sha1 md5 base64 format env code-pages mule custom w= idget hashtable-print-readable backquote w32notify w32 multi-tty make-network-pro= cess emacs) Memory information: ((conses 16 546773 36422) (symbols 56 44493 0) (miscs 48 281 814) (strings 32 125737 19777) (string-bytes 1 3681556) (vectors 16 68989) (vector-slots 8 1133465 9793) (floats 8 1100 285) (intervals 56 2889 0) (buffers 976 70)) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 05:31:45 2017 Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 09:31:45 +0000 Received: from localhost ([127.0.0.1]:34867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2ZqD-0007oo-5J for submit@debbugs.gnu.org; Thu, 12 Oct 2017 05:31:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2ZqB-0007oc-A2 for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 05:31:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Zq3-0007me-0c for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 05:31:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Zq2-0007mW-Sg; Thu, 12 Oct 2017 05:31:34 -0400 Received: from [176.228.60.248] (port=1564 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2Zq1-0003qn-7U; Thu, 12 Oct 2017 05:31:34 -0400 Date: Thu, 12 Oct 2017 12:31:22 +0300 Message-Id: <83infkn251.fsf@gnu.org> From: Eli Zaretskii To: Mark Laws In-reply-to: <86376oiv5i.fsf@60hz.org> (message from Mark Laws on Thu, 12 Oct 2017 18:15:53 +0900) Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness References: <86376oiv5i.fsf@60hz.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28795 Cc: 28795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Mark Laws > Date: Thu, 12 Oct 2017 18:15:53 +0900 > > M-x set-language-environment UTF-8 On Windows, doing this is a mistake (but not because it causes sluggish redisplay). > M-: (insert #x2207) > > Then hold down C-o until you have a bunch of empty lines, and start moving > around the buffer with the usual movement keys. You will notice it is very, > very slow. Then delete the character from the buffer, and notice how things are > fast again. I cannot reproduce this here. What font is used to display that character? You can find this out with "C-u C-x =" with the cursor on the character. On my system, I have the Symbola font installed, which is used for displaying this character, and the problem doesn't happen. As another thing to try, set inhibit-compacting-font-caches to a non-nil value, and see if that helps. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 06:00:49 2017 Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 10:00:49 +0000 Received: from localhost ([127.0.0.1]:34882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2aIJ-000073-Do for submit@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2aIH-00006n-Ne for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2aI6-0005hr-SW for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 06:00:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2aI6-0005hf-Pc; Thu, 12 Oct 2017 06:00:34 -0400 Received: from [176.228.60.248] (port=1575 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2aI6-0007C1-5S; Thu, 12 Oct 2017 06:00:34 -0400 Date: Thu, 12 Oct 2017 13:00:23 +0300 Message-Id: <83h8v4n0so.fsf@gnu.org> From: Eli Zaretskii To: Mark Laws In-reply-to: (message from Mark Laws on Thu, 12 Oct 2017 18:40:25 +0900) Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28795 Cc: 28795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [Please keep the bug address on the CC list.] > From: Mark Laws > Date: Thu, 12 Oct 2017 18:40:25 +0900 > > On Thu, Oct 12, 2017 at 6:31 PM, Eli Zaretskii wrote: > >> From: Mark Laws > >> Date: Thu, 12 Oct 2017 18:15:53 +0900 > >> > >> M-x set-language-environment UTF-8 > > > > On Windows, doing this is a mistake (but not because it causes > > sluggish redisplay). > > What is the correct way to use UTF-8 as the default encoding for > things like file-visiting buffers without causing other potential > problems? Put this in your .emacs: (prefer-coding-system 'utf-8) or even (setq-default buffer-file-coding-system 'utf-8-dos) (the latter doesn't affect process I/O). > > I cannot reproduce this here. What font is used to display that > > character? You can find this out with "C-u C-x =" with the cursor on > > the character. > > uniscribe:-outline-PragmataPro > Mono-normal-normal-normal-mono-15-*-*-*-c-*-iso8859-1 (#x8FC) And which font is used if you don't set your language-environment to UTF-8? > If it doesn't work for you off the bat, do this after inserting the character: > > M-: (put-text-property 1 2 'face font-lock-warning-face) > > Then try moving around again. Doesn't change anything here. I do see slow redisplay on another system, where Symbola is not installed, and the BatangChe font is then used. But there I see slow redisplay whether or not I set the language-environment to UTF-8. > > On my system, I have the Symbola font installed, which is used for > > displaying this character, and the problem doesn't happen. > > > > As another thing to try, set inhibit-compacting-font-caches to a > > non-nil value, and see if that helps. > > This seems to help By "this" do you mean installing Symbola or setting inhibit-compacting-font-caches non-nil? > though the fact it only happens due to changes with encoding and/or > font locking makes me suspicious. It could be that the default language-environment causes a different font to be used for that character. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 06:32:07 2017 Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 10:32:07 +0000 Received: from localhost ([127.0.0.1]:34906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2amc-0000zV-Sp for submit@debbugs.gnu.org; Thu, 12 Oct 2017 06:32:07 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:48007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2amZ-0000yy-BM for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 06:32:05 -0400 Received: by mail-qk0-f171.google.com with SMTP id m189so711390qke.4 for <28795@debbugs.gnu.org>; Thu, 12 Oct 2017 03:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=60hz-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=py+g50/TjLnmuc4jQMJWikRvswKxaDQpQoS5wEUlzgQ=; b=MkC+tCkDhYvxI/3GeznYMF0vmigNt4Tj7UjEnxEoxs5o1/DqZu6onZqt/8DQJXil2E vMOyBeMc2CK8tIZE/4AehkUzQv7rzp6hQwPxWhZGvnxFE+JYBWShaDr/BUNgL/3t7Bsf 48+cs1FsIha0sfXofAoqEkJGMEm65dlb5ANNpf5Q+BYxvCatKhPLY7/skZ9oR9mFU0S6 o/xe1/2MaGLGSQz8opYCI6r79Xks1Z4YsKZzOSj8dgQX6eNli+xrGlZH2NdjNR+OplbU Vj7I0Vjhphl/210kDytzvat/t8Pdt+HfOvfFcz5S+QZuDzHV9UNlzD8zyZaY9ORex1yX V8fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=py+g50/TjLnmuc4jQMJWikRvswKxaDQpQoS5wEUlzgQ=; b=N3/3p7WxyBzIlzF9D5YkDaVrgzCD1BxP65oRM6CVaQgMvr8GwoCxh52TjgYuRTkb/2 EbtFc/E5KZ3vI52adx46QK9SFQaKjOjjH8txH+9y/bkLiQc0R19VQzvntfCvaj6ELMCf +QW/hg7Hp7F6DfPr9uhyPNgAhXmf9IFUDDyIUBw6/Q0Y50SWkPIb8BcNUAcg1czWTY7B gWmj4FWsWPmHa4z6qv6evP3bvd+ml97hxzxkV2tlWGU9IHCnk5J3OXsh6DltRdwYEBDa y1P1s1upViGyCNPMZUN+nXKsXPZCcq4QK61gmfn53VsEWLcV2apjz744bWzG+NAG+Wc1 mVsg== X-Gm-Message-State: AMCzsaVYNCe8Kefv+j/Ah0DseYZvHjB0+CQSruUfewxOOJEc5yDXhqx2 2H/IcClMfX6ktgEVm2PY4266aivU63mQsOY1787FsQ== X-Google-Smtp-Source: ABhQp+T9TQJ8ywUM5sJEAkj/9snU1NwVVdELNLz3H0dE7VbJpEk/5NMeknHVpKlQOKBqo+/eETw9RZ1Skgu47CS/bxI= X-Received: by 10.233.237.193 with SMTP id c184mr2405981qkg.265.1507804317942; Thu, 12 Oct 2017 03:31:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.216.163 with HTTP; Thu, 12 Oct 2017 03:31:57 -0700 (PDT) X-Originating-IP: [133.232.243.52] In-Reply-To: <83h8v4n0so.fsf@gnu.org> References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> <83h8v4n0so.fsf@gnu.org> From: Mark Laws Date: Thu, 12 Oct 2017 19:31:57 +0900 Message-ID: Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 28795 Cc: 28795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) On Thu, Oct 12, 2017 at 7:00 PM, Eli Zaretskii wrote: > [Please keep the bug address on the CC list.] Sorry, mashed the wrong key. > And which font is used if you don't set your language-environment to > UTF-8? uniscribe:-outline-Malgun Gothic-bold-normal-normal-sans-15-*-*-*-p-*-ksc5601.1987-0 (#xF7) >> > As another thing to try, set inhibit-compacting-font-caches to a >> > non-nil value, and see if that helps. >> >> This seems to help > > By "this" do you mean installing Symbola or setting > inhibit-compacting-font-caches non-nil? (setq inhibit-compacting-font-caches t) seems to help. I did not try Symbola. >> though the fact it only happens due to changes with encoding and/or >> font locking makes me suspicious. > > It could be that the default language-environment causes a different > font to be used for that character. If I use (prefer-coding-system 'utf-8), I do not get the slowness anymore, even if inhibit-compacting-font-caches is nil, and even after propertizing the text. However, the font changes from PragmataPro Mono to Malgun Gothic, which seems odd too. if I use both (set-locale-environment "English") and (prefer-coding-system 'utf-8), the issue returns. -- |v\ /\ |\ |< |_ /\ \^| // From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 07:56:07 2017 Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 11:56:07 +0000 Received: from localhost ([127.0.0.1]:34949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2c5v-0004ym-1h for submit@debbugs.gnu.org; Thu, 12 Oct 2017 07:56:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2c5s-0004yG-Pj for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 07:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2c5j-0000Is-71 for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 07:55:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2c5j-0000Im-2q; Thu, 12 Oct 2017 07:55:55 -0400 Received: from [176.228.60.248] (port=1814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2c5i-0002Cb-ES; Thu, 12 Oct 2017 07:55:54 -0400 Date: Thu, 12 Oct 2017 14:55:44 +0300 Message-Id: <83bmlcmvgf.fsf@gnu.org> From: Eli Zaretskii To: Mark Laws In-reply-to: (message from Mark Laws on Thu, 12 Oct 2017 19:31:57 +0900) Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> <83h8v4n0so.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28795 Cc: 28795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Mark Laws > Date: Thu, 12 Oct 2017 19:31:57 +0900 > Cc: 28795@debbugs.gnu.org > > > And which font is used if you don't set your language-environment to > > UTF-8? > > uniscribe:-outline-Malgun > Gothic-bold-normal-normal-sans-15-*-*-*-p-*-ksc5601.1987-0 (#xF7) OK, so now we know why you get slow redisplay only with UTF-8 as language-environment: doing that changes the preferred charset, which affects font selection (Malgun Gothic is for the Korean character set, as you see from the end of its spec, so it is rejected when the preferred charset is unicode-bmp or Unicode). > If I use (prefer-coding-system 'utf-8), I do not get the slowness > anymore, even if inhibit-compacting-font-caches is nil, and even after > propertizing the text. However, the font changes from PragmataPro Mono > to Malgun Gothic, which seems odd too. Why is that odd? Emacs selects fonts according to what it thinks is the user's preferences, and by default those preferences are deduced from the culture defined in the environment. > if I use both (set-locale-environment "English") and > (prefer-coding-system 'utf-8), the issue returns. "English" nowadays defaults to Unicode as well. In general, there should be no reason for you to set a non-default language-environment on Windows, because Emacs takes that from your system's setup. If you just want to control the default encodings, use prefer-coding-system, its effect is limited to encodings, and doesn't change anything else. Is there any other problem left to solve, or we can close this bug report? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 08:17:57 2017 Received: (at 28795) by debbugs.gnu.org; 12 Oct 2017 12:17:57 +0000 Received: from localhost ([127.0.0.1]:34976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2cR3-0005Z1-0C for submit@debbugs.gnu.org; Thu, 12 Oct 2017 08:17:57 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:54262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2cR1-0005Yn-UI for 28795@debbugs.gnu.org; Thu, 12 Oct 2017 08:17:56 -0400 Received: by mail-pf0-f172.google.com with SMTP id t188so2015661pfd.10 for <28795@debbugs.gnu.org>; Thu, 12 Oct 2017 05:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=60hz-org.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sUsCtQ9gjmkBJ2NkNwrF8OXkmKk5Bnx4VScKCidUYkg=; b=tHOEz5UadQVVZad6eNIW47BDTD17WGgXilsVp663PlXlP0baeaR9Y9Zx9y2qBd9yeR RFGWDdyC/SoIp2eeYj5O8NRfkr+g2Tkx9FWitN2ktBDmYxEzZTtLNdXvjF43a11Qiw4P 0DzthjOmQWO0eYBM6EGVrhVBsO2F8Ra8Wi4Tnh0e/E/bHYDZwfkO1bQ8jHk4tCXoNTe2 Nix6fwO+bgnGfkhCDYlR/nQBvAvMoCPdRlosSE9H0qs3aX801rzonB1CFsm9JjOEJWX0 piXS6M0zMYUEovVw1zda46Dwc988uk8LFUbwwY/w1AhEP5dGzrXxPyE7CobM77kmyXBN P8uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sUsCtQ9gjmkBJ2NkNwrF8OXkmKk5Bnx4VScKCidUYkg=; b=k1BP8i/6/VCpsdc8zfESFppdS7U6sexvUee2VT2PU3xBBJsejh1BB/QQet507+QEqK aQJcTT1zrIJHDsF2HUL3dlqZUfwA2UWhw+1RSHdxdviNDp3bd41T/qVbPDjvKZqecB/q lR77zw4F02p9jWciA5YXlU57DqZAgRZcD3TotBz4FKD73H/Sh0YcWlQIRR/bxSxgjRic +WlYR1D+lXoh+YRpuBw7N47T7zwoQ12MKule731RQB0nyXDItvglISzznBA2hIT4MhyS ZAKKXCqmLB11JuCoHwQqU+fWvGHcVDMG5+YydKFHmeltjmlyk/aniqAQGEQR2bRge1z8 vSrg== X-Gm-Message-State: AMCzsaXZjMJDFbsliQ/7aY3uOUGRVh1HQn+ReKPd4K5b69p6hD0bE2qo cLlWooTUF84K7RUwj0XgzgYz/SOSk6s= X-Google-Smtp-Source: AOwi7QCeGGFtihJaeHeM80qxCyi5b8nMFk5Up+GiAvptxPfQOs75DCUtkQ80kH7QtM3eDBXaBnly2g== X-Received: by 10.84.248.141 with SMTP id q13mr78984pll.430.1507810669741; Thu, 12 Oct 2017 05:17:49 -0700 (PDT) Received: from [100.93.8.40] (60.167.214.202.rev.vmobile.jp. [202.214.167.60]) by smtp.gmail.com with ESMTPSA id k20sm3661012pfg.141.2017.10.12.05.17.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Oct 2017 05:17:49 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness From: Mark Laws X-Mailer: iPhone Mail (14C92) In-Reply-To: <83bmlcmvgf.fsf@gnu.org> Date: Thu, 12 Oct 2017 21:17:47 +0900 Content-Transfer-Encoding: 7bit Message-Id: <44C0EC2D-3006-4E81-97CE-B1F64E372912@60hz.org> References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> <83h8v4n0so.fsf@gnu.org> <83bmlcmvgf.fsf@gnu.org> To: Eli Zaretskii X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28795 Cc: 28795@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 2017/10/12, at 20:55, Eli Zaretskii wrote: > Is there any other problem left to solve, or we can close this bug > report? Nope, we're good. Thanks as always for the help! From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 08:37:51 2017 Received: (at 28795-done) by debbugs.gnu.org; 12 Oct 2017 12:37:52 +0000 Received: from localhost ([127.0.0.1]:34981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2ckH-00064h-Lt for submit@debbugs.gnu.org; Thu, 12 Oct 2017 08:37:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2ckG-00064S-1I for 28795-done@debbugs.gnu.org; Thu, 12 Oct 2017 08:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2ck7-00081K-N2 for 28795-done@debbugs.gnu.org; Thu, 12 Oct 2017 08:37:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2ck7-00080g-Ia; Thu, 12 Oct 2017 08:37:39 -0400 Received: from [176.228.60.248] (port=1835 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2ck7-0003jv-0X; Thu, 12 Oct 2017 08:37:39 -0400 Date: Thu, 12 Oct 2017 15:37:29 +0300 Message-Id: <834lr4mtiu.fsf@gnu.org> From: Eli Zaretskii To: Mark Laws In-reply-to: <44C0EC2D-3006-4E81-97CE-B1F64E372912@60hz.org> (message from Mark Laws on Thu, 12 Oct 2017 21:17:47 +0900) Subject: Re: bug#28795: 25.2; UTF-8 language environment causes extreme sluggishness References: <86376oiv5i.fsf@60hz.org> <83infkn251.fsf@gnu.org> <83h8v4n0so.fsf@gnu.org> <83bmlcmvgf.fsf@gnu.org> <44C0EC2D-3006-4E81-97CE-B1F64E372912@60hz.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28795-done Cc: 28795-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Mark Laws > Date: Thu, 12 Oct 2017 21:17:47 +0900 > Cc: 28795@debbugs.gnu.org > > On 2017/10/12, at 20:55, Eli Zaretskii wrote: > > > Is there any other problem left to solve, or we can close this bug > > report? > > Nope, we're good. Thanks as always for the help! OK, you're welcome; closing. From unknown Sat Jun 14 19:21:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Nov 2017 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator