From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#40384: 26.3; [Windows10] variable-pitch-mode is slow to redraw Date: Thu, 2 Apr 2020 18:29:07 -0400 Message-ID: <000201d6093e$201fb6e0$605f24a0$@gmail.com> References: <000201d60882$951fd3b0$bf5f7b10$@gmail.com> <83pncqx85k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20581"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40384@debbugs.gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 03 00:30:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK8Ll-0005F9-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Apr 2020 00:30:13 +0200 Original-Received: from localhost ([::1]:47954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK8Lk-0002cy-5C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Apr 2020 18:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36342) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK8Lc-0002cr-Ux for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2020 18:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jK8Lb-0005Tp-JN for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2020 18:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jK8Lb-0005T6-EL for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2020 18:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jK8Lb-0006VV-93 for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2020 18:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Apr 2020 22:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40384 X-GNU-PR-Package: emacs Original-Received: via spool by 40384-submit@debbugs.gnu.org id=B40384.158586656024752 (code B ref 40384); Thu, 02 Apr 2020 22:30:03 +0000 Original-Received: (at 40384) by debbugs.gnu.org; 2 Apr 2020 22:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:40898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK8Kt-0006R7-J0 for submit@debbugs.gnu.org; Thu, 02 Apr 2020 18:29:19 -0400 Original-Received: from mail-qk1-f171.google.com ([209.85.222.171]:33867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK8Kq-0006QM-Tk for 40384@debbugs.gnu.org; Thu, 02 Apr 2020 18:29:17 -0400 Original-Received: by mail-qk1-f171.google.com with SMTP id i6so6069832qke.1 for <40384@debbugs.gnu.org>; Thu, 02 Apr 2020 15:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=vYQeQ+mUo+dBbjg3Ug7SbhxtxHLtZ4mGRmTsI16bZlg=; b=aP8DX85kotvYlCjDOcfWcRFl/5GX6rhi7shvDjq+kCAzSG1NeyLlQzGzIj2hMw3ae4 ORuY8Qy+6fntQYnOy84DAPvH+s4y98u/BGU5k9kjpjhmvcfkAvPJH/jsgks132ZNk6OG +3GNkRy+2ScRLojvysENja4mMLC+USQ3ItpCkrW8PeF3XaueuAp7pRIQhi6h1AAk6tsa kVPKmNNHwBrpslOtdY9e5UfVk5NUP+c7fItZi0smVBxC2Gow1MsdQRlmqD16ZS5cpj48 hvZ4Eu33fqW7AFg3Y+k6GLK4rJI40rRSHlYT5Y394GAD8NzxcPf4Px6RCb8TwjnAOaCx n99w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=vYQeQ+mUo+dBbjg3Ug7SbhxtxHLtZ4mGRmTsI16bZlg=; b=oG41CLRVE7L9HECSGPL63da+HtuWvZM5nOewhIoSliHdUJfe/H5irDLpspt666+mo+ vvsc+h7z2Z/LgxanueUPp3uRhAPkBUfvSbDp8He8b7iz+UP0T87/qvsGL+bNdO8qrNDz ejaZqewS3ZFtRgzA/7r1gN4om70Vd/npXrCSzkllLs1TqoMkxJAtFKDQRO/SOGptf/dx zcm99P5HXZ+ZszFOltjEx0MTVy1UpoaW9alh2Y0TdQxk2hLK/ya13bZ9FxribyM0t5Mt NxCqBm4kmwI0ufDMkUnaXwjC50QhvvkZzgDWRmjKX/2tJvlMErHE4DuaVfQ662TK2hfO QaCA== X-Gm-Message-State: AGi0PuYCDE2qAaq+7+AEFXDHULUBPbDgyRg+nmTo4gCKG3mhZhpEU5VJ 3MrxzFIFhXyjMvYNCQ001RK1mCST X-Google-Smtp-Source: APiQypIhjM00hMgpf4FonrX9ybQdpJdRLUXfBUkswC7V/HHsx0Fl3jb9ap3OmYeCSFn9/oemGD36KA== X-Received: by 2002:a05:620a:b16:: with SMTP id t22mr5847303qkg.163.1585866550657; Thu, 02 Apr 2020 15:29:10 -0700 (PDT) Original-Received: from malevich (cpe-67-249-80-215.twcny.res.rr.com. [67.249.80.215]) by smtp.gmail.com with ESMTPSA id r29sm4866397qtj.76.2020.04.02.15.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2020 15:29:09 -0700 (PDT) In-Reply-To: <83pncqx85k.fsf@gnu.org> X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKo1kHc8TNpcpd69DkcKQrC1BdfAQJlhs6bpq2ihcA= Content-Language: en-us 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177965 Archived-At: By default the font that gets used is display: by this font (glyph code) uniscribe:-outline-Arial-normal-normal-normal-sans-20-*-*-*-p-*-iso8859-1 (#x03) as given by describe-char. On the other hand I can, before enabling the mode, execute (custom-set-faces '(variable-pitch ((t (:height 120 :family "Segoe UI" :foundry "MS " :slant normal :weight normal :width normal))))) and this gives display: by this font (glyph code) uniscribe:-outline-Segoe UI-normal-normal-normal-sans-24-*-*-*-p-*-iso8859-1 (#x37) But slowness happens in both cases. Here are the profiler reports for CPU for scrolling about 2 pages worth of text by pushing the down arrow: ******Normal******* - command-execute 3 75% - call-interactively 3 75% - byte-code 3 75% - read-extended-command 3 75% - completing-read 3 75% - completing-read-default 3 75% read-from-minibuffer 2 50% - ... 1 25% Automatic GC 1 25% ******variable-pitch-mode******* - command-execute 92 97% - call-interactively 92 97% - funcall-interactively 91 96% - next-line 89 94% - line-move 89 94% - line-move-partial 59 62% - default-line-height 36 38% default-font-height 36 38% - window-screen-lines 23 24% - default-line-height 23 24% default-font-height 23 24% - default-line-height 30 31% default-font-height 30 31% - execute-extended-command 2 2% - sit-for 2 2% redisplay 2 2% - byte-code 1 1% - read-extended-command 1 1% - completing-read 1 1% - completing-read-default 1 1% - read-from-minibuffer 1 1% - redisplay_internal (C function) 1 1% - tool-bar-make-keymap 1 1% - tool-bar-make-keymap-1 1 1% - mapcar 1 1% - # 1 1% - eval 1 1% - find-image 1 1% image-search-load-path 1 1% - ... 2 2% Automatic GC 2 2% Thanks! -----Original Message----- From: Eli Zaretskii Sent: Thursday, 2 April, 2020 10:41 To: gennady.uraltsev@gmail.com Cc: 40384@debbugs.gnu.org Subject: Re: bug#40384: 26.3; [Windows10] variable-pitch-mode is slow to redraw > From: > Date: Wed, 1 Apr 2020 20:06:38 -0400 > > I am trying to emacs under Windows 10. variable-pitch-mode is insanely > slow in redrawing the screen. With a clean emacs.d I opened a text > file and tried pressing the down arrow. The cursor gets redisplayed > every 10 lines or so and emacs is very sluggish. It is interesting > that this DOES NOT happen with a normal, fixed-pitch, font and also > does NOT happen if I set the default font to be a variable pitch one > e.g. "Segoe UI". It only happens with variable-pitch-mode. I don't think I can reproduce this. Which font is used on your system when you turn on variable-pitch-mode? (You can type "C-u C-x =" on a character to see the font used to display it.) > Attached are profiler results for moving down two pages worth of text. Thanks, but you provided a "memory" profile, which is almost useless. Please provide the "cpu" profile instead, and please show it in human-readable form (after performing the measurement, type "M-x profiler-report RET", then go to each top-level "+" sign and type "C-u RET" to expand the profile; and finally paste the result into your message and send it).