From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 01:00:30 2016 Received: (at submit) by debbugs.gnu.org; 7 Oct 2016 05:00:30 +0000 Received: from localhost ([127.0.0.1]:47093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsNGo-0003fI-8A for submit@debbugs.gnu.org; Fri, 07 Oct 2016 01:00:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsNGl-0003f4-Kq for submit@debbugs.gnu.org; Fri, 07 Oct 2016 01:00:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsNGf-0004qG-I4 for submit@debbugs.gnu.org; Fri, 07 Oct 2016 01:00:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,TO_NO_BRKTS_PCNT autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNGf-0004p4-Fe for submit@debbugs.gnu.org; Fri, 07 Oct 2016 01:00:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNGd-0003Pm-2y for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 01:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsNGY-0004kI-U5 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 01:00:18 -0400 Received: from [195.159.176.226] (port=39030 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsNGY-0004c7-MO for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 01:00:14 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsNGJ-0000E5-8L for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 06:59:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Fri, 07 Oct 2016 12:59:14 +0800 Organization: gko.net Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (windows-nt) Hamster/2.0.0.1 Cancel-Lock: sha1:vKbrjRq3OhOStQvg+aMUIGXMS1U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) 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: -5.0 (-----) When moving in lines with characters such as WAVY LOW LINE or WAVY LINE: - Emacs freezes for a while (noticeable) for a fraction of a second or even longer, - The CPU load of Emacs increases as well (up to 25% on my Windows 7 machine) in the meantime. Text sample below: ﹏ ⌇ This happens to the "native" as well as the Cygwin-compiled (--with-w32) versions, but not with the gtk3 version (--with-x-toolkit=gtk3). -- Georges Ko gko@gko.net 2016-10-07 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 03:17:04 2016 Received: (at 24634) by debbugs.gnu.org; 7 Oct 2016 07:17:04 +0000 Received: from localhost ([127.0.0.1]:47139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsPOx-0007K1-UT for submit@debbugs.gnu.org; Fri, 07 Oct 2016 03:17:04 -0400 Received: from mail-lf0-f44.google.com ([209.85.215.44]:34500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsPOx-0007JQ-0a for 24634@debbugs.gnu.org; Fri, 07 Oct 2016 03:17:03 -0400 Received: by mail-lf0-f44.google.com with SMTP id b81so34158625lfe.1 for <24634@debbugs.gnu.org>; Fri, 07 Oct 2016 00:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=EkTKXovfHaI5AfOQXN94pUdQgNOIfjwLMxsqG+mbc3A=; b=zs9M7UvM7adtVlWgUgUA33DNLD2EhD41AOE/WCQYDZKLdZFLMgutW5wFXVY5lYF5UD MEHWQEDOePS8nw+bLf91D8rTWUx6BTbGKdj1rGofjEusg86b9JVEpdVJuH5++4JiGotV phDOw7nH+WtUGbIS3kRssyPPWdX2HIgUn2OFPMf9trHKD4Giiw6qISYEELXJf2k57NIT RltUOUh7vQtsl6N7zpGPEYkvL81P9xsbjJB6Gkn3QGHfjm8x8iFpIVLXd1HfCtlYYbNr fx7wflTUDsjNgtrDbXOYCprY8WAYgJ/zbX1cbj+9SMhzXMUNfCGEdfq3o/lJZbz15el+ aygQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=EkTKXovfHaI5AfOQXN94pUdQgNOIfjwLMxsqG+mbc3A=; b=CMCLLUWgOjkRkAhtMGcVePqhUU6+qguocRp7S/h2cPFbzD0s5JZi9BGrC1etoCSIPZ Dn0I2tc+feTtEiR8QPn6gF4QYMDQh6coRo84LkxgdYP3qRGeS1/bXQiQIfW8Ef0j3br0 Xt4o57MSBeg35BqB/2TjLdCn7E7+WOA5gJBBpcoY4aeuIEznyEhoDdOLrihvcwctu7// Ihz99GDoZpFbbum0/gnJ851d6fqO1l60BLNgkeu8fAUidbvXUTNt0+OGRgdXZhdb2fNu J/EwJe79SYQlXURIpfMXbxgb2YKupBxyyYhcR69rfHDNChXvqyckUH2Hdneulr9/RQ3w MXAA== X-Gm-Message-State: AA6/9RmY9u2bAcN9IVmf8uASwQGS4A8NT0TowlVzZ+yJbYIUi5+8BP8N+0pd61bv6Ku3MA== X-Received: by 10.25.27.139 with SMTP id b133mr6924614lfb.157.1475824616485; Fri, 07 Oct 2016 00:16:56 -0700 (PDT) Received: from [192.168.199.2] (broadband-95-84-209-126.nationalcablenetworks.ru. [95.84.209.126]) by smtp.gmail.com with ESMTPSA id 24sm3354380lfr.49.2016.10.07.00.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 00:16:55 -0700 (PDT) From: Nikolay Kudryavtsev X-Google-Original-From: Nikolay Kudryavtsev To: gko@gko.net Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Message-ID: Date: Fri, 7 Oct 2016 10:16:39 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 24634 Cc: 24634@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: 0.5 (/) This is a duplicate of #15876, I recently reported this as #24565, see the discussion there for a workaround and perspectives for a more permanent fix. -- Best Regards, Nikolay Kudryavtsev From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 04:06:00 2016 Received: (at 24634) by debbugs.gnu.org; 7 Oct 2016 08:06:00 +0000 Received: from localhost ([127.0.0.1]:47225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsQAJ-0000D9-Sw for submit@debbugs.gnu.org; Fri, 07 Oct 2016 04:06:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsQAH-0000Ct-Fx for 24634@debbugs.gnu.org; Fri, 07 Oct 2016 04:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsQA7-0001te-F6 for 24634@debbugs.gnu.org; Fri, 07 Oct 2016 04:05:52 -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_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsQA7-0001sc-6z; Fri, 07 Oct 2016 04:05:47 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4910 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bsQA5-0008MW-Ck; Fri, 07 Oct 2016 04:05:45 -0400 Date: Fri, 07 Oct 2016 11:05:50 +0300 Message-Id: <83zimginxd.fsf@gnu.org> From: Eli Zaretskii To: Georges Ko In-reply-to: (message from Georges Ko on Fri, 07 Oct 2016 12:59:14 +0800) Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: -7.7 (-------) X-Debbugs-Envelope-To: 24634 Cc: 24634@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: -7.7 (-------) > From: Georges Ko > Date: Fri, 07 Oct 2016 12:59:14 +0800 > > When moving in lines with characters such as WAVY LOW LINE or WAVY LINE: > > - Emacs freezes for a while (noticeable) for a fraction of a second or > even longer, > > - The CPU load of Emacs increases as well (up to 25% on my Windows 7 > machine) in the meantime. Possibly related to bug#24565. > Text sample below: > > > ﹏ > > > > ⌇ What font(s) is/are used on your system to display these characters? From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 13:06:30 2016 Received: (at submit) by debbugs.gnu.org; 7 Oct 2016 17:06:30 +0000 Received: from localhost ([127.0.0.1]:48019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsYbN-0001mw-Mi for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsYbL-0001mk-HY for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYbE-000639-6t for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:22 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYbE-00061o-3T for submit@debbugs.gnu.org; Fri, 07 Oct 2016 13:06:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYbB-00027w-1J for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYb7-0005wQ-Ir for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:16 -0400 Received: from [195.159.176.226] (port=42859 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYb7-0005sn-81 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 13:06:13 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsYax-0008OZ-PS for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 19:06:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 01:01:40 +0800 Organization: gko.net Lines: 289 Message-ID: References: <83zimginxd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (cygwin) Hamster/2.0.0.1 Cancel-Lock: sha1:UeQtYzHBA3HT5gsbaClO7czv44g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Eli Zaretskii writes: >> ﹏ >> >> >> >> ⌇ > > What font(s) is/are used on your system to display these characters? I did some tests with "runemacs -Q", with the following results as an org-mode buffer. I can mitigate the problem by using language environment "English" and font "MingLiu-SIZE" (2nd step), the worst case being language environment "UTF-8" and font "Courier NEw-SIZE" (3rd step). * Summary |---------+----------+-------+------+------+---------------------------------------------------------| | Step | current- | frame | WAVY | WAVY | Font of set-frame-font, WAVY LINE and WAVY LOW LINE | | | language | font | LINE | LOW | O=outline NNN=normal-normal-normal | | | environ | | | LINE | | |---------+----------+-------+------+------+---------------------------------------------------------| | Initial | English | CN-10 | | | -O-Courier New-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x1E) | | | | | OK | | -O-Symbola-NNN-serif-13-*-*-*-p-*-iso8859-1 (#x640) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | (s-f-f | English | ML-10 | | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x29) | | ML-10) | | | OK | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x286) | | | | | | OK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-gb2312.1980-0 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | s-l-e | UTF-8 | ML-10 | | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x55) | | UTF-8 | | | OK | | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x286) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| | (s-f-f | UTF-8 | CN-10 | | | -O-Courier New-NNN-mono-13-*-*-*-c-*-iso8859-1 (#x03) | | CN-10) | | | NOK | | -O-Symbola-NNN-serif-13-*-*-*-p-*-iso8859-1 (#x640) | | | | | | NOK | -O-MingLiU-NNN-mono-13-*-*-*-c-*-iso10646-1 (#x7096) | |---------+----------+-------+------+------+---------------------------------------------------------| - WAVY LINE : script: symbol, category: .:Base - WAVY LOW LINE: script: han, category: .:Base, c:Chinese * Details ** Environment - C:\emacs-25.1-x86_64-w64-mingw32\bin\runemacs.exe -Q - current-language-environment -> "English" - w32-ansi-code-page -> 1252 - Character info (C-u C-x =) of some ASCII character in *scratch*: #+BEGIN_SRC fundamental position: 1 of 145 (0%), column: 0 character: ; (displayed as ;) (codepoint 59, #o73, #x3b) preferred charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x3B script: latin syntax: < which means: comment category: .:Base, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 3b" or "C-x 8 RET SEMICOLON" buffer code: #x3B file code: #x3B (encoded by coding system iso-latin-1-dos) display: by this font (glyph code) uniscribe:-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x1E) Character code properties: customize what to show name: SEMICOLON general-category: Po (Punctuation, Other) decomposition: (59) (';') There are text properties here: face font-lock-comment-delimiter-face fontified nil #+END_SRC ** Initial setup - Insert "WAVY LINE": (insert-char 8967 1 t) - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 189 (97%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1 (#x640) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Insert "WAVY LOW LINE": (insert-char 65103 1 t) - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 187 of 194 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC - At this moment, Emacs is very jerky due to the presence of wavy low line character. ** (set-frame-font "MingLiu-10") - Right after switching to this font, everything is smooth again! - Check "WAVY LINE": - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 194 (94%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x286) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - check "WAVY LOW LINE": - OK: no high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 187 of 194 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: not encodable by coding system iso-latin-1-dos display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC ** (set-language-environment) to UTF-8: - Check "WAVY LINE": - OK: no high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 196 (93%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: #xE2 #x8C #x87 (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x286) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Check "WAVY LOW LINE": - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 189 of 196 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: #xEF #xB9 #x8F (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC ** (set-frame-font "Courier New-10") - Check "WAVY LINE": - NOK: high CPU load - Character info of wavy line: #+BEGIN_SRC fundamental position: 184 of 196 (93%), column: 0 character: ⌇ (displayed as ⌇) (codepoint 8967, #o21407, #x2307) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0x2307 script: symbol syntax: . which means: punctuation category: .:Base to input: type "C-x 8 RET 2307" or "C-x 8 RET WAVY LINE" buffer code: #xE2 #x8C #x87 file code: #xE2 #x8C #x87 (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-Symbola-normal-normal-normal-serif-13-*-*-*-p-*-iso8859-1 (#x640) Character code properties: customize what to show name: WAVY LINE general-category: So (Symbol, Other) decomposition: (8967) ('⌇') There are text properties here: fontified t #+END_SRC - Check "WAVY LOW LINE": - NOK: high CPU load - Character info of wavy low line: #+BEGIN_SRC fundamental position: 189 of 196 (96%), column: 0 character: ﹏ (displayed as ﹏) (codepoint 65103, #o177117, #xfe4f) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point in charset: 0xFE4F script: han syntax: w which means: word category: .:Base, c:Chinese to input: type "C-x 8 RET fe4f" or "C-x 8 RET WAVY LOW LINE" buffer code: #xEF #xB9 #x8F file code: #xEF #xB9 #x8F (encoded by coding system utf-8-dos) display: by this font (glyph code) uniscribe:-outline-MingLiU-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#x7096) Character code properties: customize what to show name: WAVY LOW LINE old-name: SPACING WAVY UNDERSCORE general-category: Pc (Punctuation, Connector) decomposition: (compat 95) (compat '_') There are text properties here: fontified t #+END_SRC -- Georges Ko gko@gko.net 2016-10-08 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 15:03:09 2016 Received: (at 24634) by debbugs.gnu.org; 7 Oct 2016 19:03:09 +0000 Received: from localhost ([127.0.0.1]:48054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsaQG-0004a6-VP for submit@debbugs.gnu.org; Fri, 07 Oct 2016 15:03:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsaQF-0004Zg-11 for 24634@debbugs.gnu.org; Fri, 07 Oct 2016 15:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsaQ3-0005cr-9P for 24634@debbugs.gnu.org; Fri, 07 Oct 2016 15:02:58 -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_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsaQ3-0005b9-6d; Fri, 07 Oct 2016 15:02:55 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bsaQ1-0001Nn-FI; Fri, 07 Oct 2016 15:02:53 -0400 Date: Fri, 07 Oct 2016 22:03:00 +0300 Message-Id: <83ponchti3.fsf@gnu.org> From: Eli Zaretskii To: Georges Ko In-reply-to: (message from Georges Ko on Sat, 08 Oct 2016 01:01:40 +0800) Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters References: <83zimginxd.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: -7.7 (-------) X-Debbugs-Envelope-To: 24634 Cc: 24634@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: -7.7 (-------) > From: Georges Ko > Date: Sat, 08 Oct 2016 01:01:40 +0800 > > Eli Zaretskii writes: > > >> ﹏ > >> > >> > >> > >> ⌇ > > > > What font(s) is/are used on your system to display these characters? > > I did some tests with "runemacs -Q", with the following results as an > org-mode buffer. > > I can mitigate the problem by using language environment "English" and > font "MingLiu-SIZE" (2nd step), the worst case being language > environment "UTF-8" and font "Courier NEw-SIZE" (3rd step). So Symbola and Courier New don't cause slowdown, while MingLiu does? Do you have some custom fontset setup, or does Emacs use MingLiu for the WAVY LOW LINE by default, in "emacs -Q"? (But the way, setting language environment to UTF-8 on Windows is not a good idea, it will cause you trouble unless you make further customizations to countermand that.) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 23:00:48 2016 Received: (at submit) by debbugs.gnu.org; 8 Oct 2016 03:00:48 +0000 Received: from localhost ([127.0.0.1]:48161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bshsW-0007XU-03 for submit@debbugs.gnu.org; Fri, 07 Oct 2016 23:00:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bshsT-0007XH-DW for submit@debbugs.gnu.org; Fri, 07 Oct 2016 23:00:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bshsN-0007hp-3U for submit@debbugs.gnu.org; Fri, 07 Oct 2016 23: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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bshsN-0007hC-0C for submit@debbugs.gnu.org; Fri, 07 Oct 2016 23:00:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bshsK-00056D-PI for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 23:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bshsG-0007ep-Iq for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 23:00:35 -0400 Received: from [195.159.176.226] (port=52817 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bshsG-0007dA-Bw for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 23:00:32 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bshrr-0002Ry-Bx for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 05:00:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 10:59:06 +0800 Organization: gko.net Lines: 44 Message-ID: References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (cygwin) Hamster/2.0.0.1 Cancel-Lock: sha1:qyweKM773TXOc8upKqggXLF/jZY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Eli Zaretskii writes: >> > What font(s) is/are used on your system to display these characters? >> >> I did some tests with "runemacs -Q", with the following results as an >> org-mode buffer. >> >> I can mitigate the problem by using language environment "English" and >> font "MingLiu-SIZE" (2nd step), the worst case being language >> environment "UTF-8" and font "Courier NEw-SIZE" (3rd step). > > So Symbola and Courier New don't cause slowdown, while MingLiu does? > > 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 > (But the way, setting language environment to UTF-8 on Windows is not > a good idea, it will cause you trouble unless you make further > customizations to countermand that.) OK, let's narrow the scope and not consider UTF-8 cases (rows 3 and 4). Georges -- Georges Ko gko@gko.net 2016-10-08 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 02:21:21 2016 Received: (at 24634) by debbugs.gnu.org; 8 Oct 2016 06:21:21 +0000 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 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 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 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_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sat, 08 Oct 2016 09:21:14 +0300 Message-Id: <83bmyvico5.fsf@gnu.org> From: Eli Zaretskii To: Georges Ko In-reply-to: (message from Georges Ko on Sat, 08 Oct 2016 10:59:06 +0800) Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters References: <83zimginxd.fsf@gnu.org> <83ponchti3.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: -7.7 (-------) X-Debbugs-Envelope-To: 24634 Cc: 24634@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: -7.7 (-------) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 04:21:49 2016 Received: (at submit) by debbugs.gnu.org; 8 Oct 2016 08:21:49 +0000 Received: from localhost ([127.0.0.1]:48258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsmtA-0006rM-Ti for submit@debbugs.gnu.org; Sat, 08 Oct 2016 04:21:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsmt9-0006r9-Cj for submit@debbugs.gnu.org; Sat, 08 Oct 2016 04:21:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsmt3-0004EQ-Fl for submit@debbugs.gnu.org; Sat, 08 Oct 2016 04:21: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=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsmt3-0004Dc-CB for submit@debbugs.gnu.org; Sat, 08 Oct 2016 04:21:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsmt1-0002SR-9N for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 04:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsmsx-0004AL-3l for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 04:21:38 -0400 Received: from [195.159.176.226] (port=35694 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsmsw-00049g-TQ for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 04:21:35 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bsmsl-0000Fv-E7 for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 10:21:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 16:20:33 +0800 Organization: gko.net Lines: 17 Message-ID: References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (cygwin) Hamster/2.0.0.1 Cancel-Lock: sha1:kRLoPv9gYpvjXxcl7C6P4+0Bg40= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Eli Zaretskii writes: >> > So Symbola and Courier New don't cause slowdown, while MingLiu does? > > What about this question? WAVY LOW LINE in MingLiu does cause slow down if the default font is Courier New (emacs -Q), but not if it is MingLiu. > 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? I'll try and see what happens. -- Georges Ko gko@gko.net 2016-10-08 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 10:13:16 2016 Received: (at submit) by debbugs.gnu.org; 8 Oct 2016 14:13:16 +0000 Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bssNI-0001wa-2L for submit@debbugs.gnu.org; Sat, 08 Oct 2016 10:13:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bssNF-0001wL-N9 for submit@debbugs.gnu.org; Sat, 08 Oct 2016 10:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bssN9-0000WM-Lq for submit@debbugs.gnu.org; Sat, 08 Oct 2016 10:13:08 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bssN9-0000Vs-Iq for submit@debbugs.gnu.org; Sat, 08 Oct 2016 10:13:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bssN7-0001Wn-G4 for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 10:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bssN1-0000Qw-GN for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 10:13:04 -0400 Received: from [195.159.176.226] (port=39570 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bssN1-0000Nc-9o for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 10:12:59 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bssMa-0005WG-Dp for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 16:12:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 22:11:47 +0800 Organization: gko.net Lines: 13 Message-ID: References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (cygwin) Hamster/2.0.0.1 Cancel-Lock: sha1:FbnG0R5PLhMmlbFYGlqm1KVKnL4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Georges Ko writes: >> 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? > > I'll try and see what happens. When compiled with compact_font_caches empty or not called, Emacs crashes at launch... -- Georges Ko gko@gko.net 2016-10-08 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 10:43:42 2016 Received: (at 24634) by debbugs.gnu.org; 8 Oct 2016 14:43:42 +0000 Received: from localhost ([127.0.0.1]:48849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bssqk-0002iU-Ko for submit@debbugs.gnu.org; Sat, 08 Oct 2016 10:43:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bssqi-0002iG-Cz for 24634@debbugs.gnu.org; Sat, 08 Oct 2016 10:43:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bssqa-0006HE-6p for 24634@debbugs.gnu.org; Sat, 08 Oct 2016 10:43:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bssqa-0006Gy-3X; Sat, 08 Oct 2016 10:43:32 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bssqZ-0000HV-Av; Sat, 08 Oct 2016 10:43:31 -0400 Date: Sat, 08 Oct 2016 17:43:40 +0300 Message-Id: <83int2hper.fsf@gnu.org> From: Eli Zaretskii To: Georges Ko In-reply-to: (message from Georges Ko on Sat, 08 Oct 2016 22:11:47 +0800) Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.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: -7.7 (-------) X-Debbugs-Envelope-To: 24634 Cc: 24634@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: -7.7 (-------) > From: Georges Ko > Date: Sat, 08 Oct 2016 22:11:47 +0800 > > When compiled with compact_font_caches empty or not called, Emacs > crashes at launch... Sorry, I failed to mention that you need to leave the mark_object call there. IOW, the function compact_font_caches should be like this: static void compact_font_caches (void) { struct terminal *t; for (t = terminal_list; t; t = t->next_terminal) { Lisp_Object cache = TERMINAL_FONT_CACHE (t); mark_object (cache); } } From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 11:25:00 2016 Received: (at submit) by debbugs.gnu.org; 8 Oct 2016 15:25:01 +0000 Received: from localhost ([127.0.0.1]:48868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bstUi-0003ia-NP for submit@debbugs.gnu.org; Sat, 08 Oct 2016 11:25:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bstUg-0003iO-Py for submit@debbugs.gnu.org; Sat, 08 Oct 2016 11:24:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bstUa-00050R-M7 for submit@debbugs.gnu.org; Sat, 08 Oct 2016 11:24: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.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bstUa-0004yj-JM for submit@debbugs.gnu.org; Sat, 08 Oct 2016 11:24:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bstUY-0004dN-FA for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 11:24:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bstUU-0004tR-8h for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 11:24:49 -0400 Received: from [195.159.176.226] (port=51092 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bstUU-0004pJ-1g for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 11:24:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bstU9-00085A-Jc for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 17:24:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Sat, 08 Oct 2016 23:24:24 +0800 Organization: gko.net Lines: 23 Message-ID: <86h98mrhhz.fsf@gko.net> References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.fsf@gnu.org> <83int2hper.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (windows-nt) Hamster/2.0.0.1 Cancel-Lock: sha1:PalXTnuk7/HwoVc5RrJZBrgdI0Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Eli Zaretskii writes: >> When compiled with compact_font_caches empty or not called, Emacs >> crashes at launch... > > Sorry, I failed to mention that you need to leave the mark_object call > there. IOW, the function compact_font_caches should be like this: > > static void > compact_font_caches (void) > { > struct terminal *t; > > for (t = terminal_list; t; t = t->next_terminal) > { > Lisp_Object cache = TERMINAL_FONT_CACHE (t); > mark_object (cache); > } > } OK, this version fixes all cases! -- Georges Ko gko@gko.net 2016-10-08 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 15:34:40 2016 Received: (at 24634-done) by debbugs.gnu.org; 8 Oct 2016 19:34:40 +0000 Received: from localhost ([127.0.0.1]:49032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsxOK-00038c-EO for submit@debbugs.gnu.org; Sat, 08 Oct 2016 15:34:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsxOJ-00038Q-Ij for 24634-done@debbugs.gnu.org; Sat, 08 Oct 2016 15:34:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsxOA-0001JJ-BJ for 24634-done@debbugs.gnu.org; Sat, 08 Oct 2016 15:34:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.7 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]:51051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsxOA-0001JA-7f; Sat, 08 Oct 2016 15:34:30 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3231 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bsxO7-0004tz-DK; Sat, 08 Oct 2016 15:34:29 -0400 Date: Sat, 08 Oct 2016 22:34:14 +0300 Message-Id: <834m4mhbyh.fsf@gnu.org> From: Eli Zaretskii To: Georges Ko In-reply-to: <86h98mrhhz.fsf@gko.net> (message from Georges Ko on Sat, 08 Oct 2016 23:24:24 +0800) Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.fsf@gnu.org> <83int2hper.fsf@gnu.org> <86h98mrhhz.fsf@gko.net> 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: -7.7 (-------) X-Debbugs-Envelope-To: 24634-done Cc: 24634-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: -7.7 (-------) > From: Georges Ko > Date: Sat, 08 Oct 2016 23:24:24 +0800 > > > static void > > compact_font_caches (void) > > { > > struct terminal *t; > > > > for (t = terminal_list; t; t = t->next_terminal) > > { > > Lisp_Object cache = TERMINAL_FONT_CACHE (t); > > mark_object (cache); > > } > > } > > OK, this version fixes all cases! OK, I've now added a variable which you can set to non-nil to disable font cache compaction. See the latest emacs-25 branch. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 05:56:26 2016 Received: (at submit) by debbugs.gnu.org; 10 Oct 2016 09:56:26 +0000 Received: from localhost ([127.0.0.1]:50504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btXJp-00082u-W3 for submit@debbugs.gnu.org; Mon, 10 Oct 2016 05:56:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btXJo-00082i-HY for submit@debbugs.gnu.org; Mon, 10 Oct 2016 05:56:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btXJi-0005ez-HE for submit@debbugs.gnu.org; Mon, 10 Oct 2016 05:56:19 -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_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXJi-0005eG-Em for submit@debbugs.gnu.org; Mon, 10 Oct 2016 05:56:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXJg-0004DJ-5J for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 05:56:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btXJc-0005bk-UY for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 05:56:16 -0400 Received: from [195.159.176.226] (port=44366 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btXJc-0005Z1-OA for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 05:56:12 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1btXJH-0007tV-ND for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 11:55:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Georges Ko Subject: Re: bug#24634: 25.1 on Windows (native and cygwin+w32): high CPU load with "wavy" characters Date: Mon, 10 Oct 2016 17:54:51 +0800 Organization: gko.net Lines: 10 Message-ID: References: <83zimginxd.fsf@gnu.org> <83ponchti3.fsf@gnu.org> <83bmyvico5.fsf@gnu.org> <83int2hper.fsf@gnu.org> <86h98mrhhz.fsf@gko.net> <834m4mhbyh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (windows-nt) Hamster/2.0.0.1 Cancel-Lock: sha1:26XynEmKfWeIl1jFgwOHn4k1NKk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Eli Zaretskii writes: >> OK, this version fixes all cases! > > OK, I've now added a variable which you can set to non-nil to disable font > cache compaction. See the latest emacs-25 branch. OK, thanks! -- Georges Ko gko@gko.net 2016-10-10 From unknown Mon Aug 18 18:01:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 07 Nov 2016 12:24:04 +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