From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 09:21:14 +0300 Message-ID: <83bmyvico5.fsf@gnu.org> References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475907740 18994 195.159.176.226 (8 Oct 2016 06:22:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2016 06:22:20 +0000 (UTC) Cc: 24634@debbugs.gnu.org To: Georges Ko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 08:22:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsl1R-000443-JN for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 08:22:13 +0200 Original-Received: from localhost ([::1]:39464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsl1Q-0000gS-3G for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 02:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsl1K-0000gM-5v for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 02:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsl1F-0001Yf-UH for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 02:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsl1F-0001YW-RI for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 02:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsl1F-00041D-L1 for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 02:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Oct 2016 06:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24634-submit@debbugs.gnu.org id=B24634.147590768115392 (code B ref 24634); Sat, 08 Oct 2016 06:22:01 +0000 Original-Received: (at 24634) by debbugs.gnu.org; 8 Oct 2016 06:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:48233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsl0b-00040B-1n for submit@debbugs.gnu.org; Sat, 08 Oct 2016 02:21:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsl0Y-0003zy-Ts for 24634@debbugs.gnu.org; Sat, 08 Oct 2016 02:21:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsl0Q-00014O-J5 for 24634@debbugs.gnu.org; Sat, 08 Oct 2016 02:21:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsl0Q-00013l-G5; Sat, 08 Oct 2016 02:21:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2362 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bsl0N-0007s1-Tw; Sat, 08 Oct 2016 02:21:08 -0400 In-reply-to: (message from Georges Ko on Sat, 08 Oct 2016 10:59:06 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124190 Archived-At: > From: Georges Ko > Date: Sat, 08 Oct 2016 10:59:06 +0800 > > > So Symbola and Courier New don't cause slowdown, while MingLiu does? What about this question? > > Do you have some custom fontset setup, or does Emacs use MingLiu for > > the WAVY LOW LINE by default, in "emacs -Q"? > > Emacs uses MingLiu in "emacs -Q" on my system. > > In "Initial setup" I just do "emacs -Q" and insert these characters and > see the fonts used to display ASCII characters (1st line), WAVY LINE > (2nd line) and WAVY LOW LINE (3rd character), which are: > > - ASCII -O-Courier New-NNN-mono-13-*-*-*-c-*-iso8859-1 > - WAVY LINE -O-Symbola-NNN-serif-13-*-*-*-p-*-iso8859-1 > - WAVY LOW LINE -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 > > and WAVY LINE (Symbola) is OK (no slowdown) and > WAVY LOW LINE (MingLiu) is NOK (slowdown). > > After switching to "MingLiu-10" with (set-frame-font "MingLiu-10), > everything is smooth and using all use MingLiu-10 (2nd row of table): > > - ASCII, WAVY LINE -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 > - WAVY LOW LINE -O-MingLiU-NNN-mono-13-*-*-*-c-*-gb2312.1980-0 As I said elsewhere, patches to make the offending code opt-out under control of a Lisp variable are welcome. If you rebuild with the compact_font_caches function (in alloc.c) disabled, i.e. make its body empty, does the problem go away for you?