unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
@ 2021-06-19  5:05 Hongyi Zhao
  2021-06-19  6:13 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19  5:05 UTC (permalink / raw)
  To: Emacs-devel, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

On Ubuntu 20.04, I use the latest self compiled git master version as
shown below:

$ git log -1
commit 5d8608ea744727b9a74874cfe8aca4656a4a9fea (HEAD -> master,
origin/master, origin/HEAD)
Author: Hongyi Zhao <hongyi.zhao@gmail.com>
Date:   Sat Jun 19 12:02:51 2021 +0800

    new file:   .emacs.d/init.company-wordfreq.el
    new file:   .emacs.d/init.lsp-latex
    new file:   .emacs.d/init.straight.el

I noticed the following strange problem:

First start Emacs like this:

$ /usr/local/bin/emacs -Q

Then run `M-x list-input-methods` and scroll down the screen in input
method panel using the mouse or arrow key will cause Emacs
unresponsive for about 1 minute.

See the attached file for the screenshot that was captured when this
problem occurred.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

[-- Attachment #2: 2021-06-19_12-42.png --]
[-- Type: image/png, Size: 115123 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19  5:05 Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite Hongyi Zhao
@ 2021-06-19  6:13 ` Eli Zaretskii
       [not found]   ` <CAGP6PO+5QjiB4jkk1x-VZrhm-gUzEiv7dC_sJH_gi1cRzMGu2Q@mail.gmail.com>
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19  6:13 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel

[Please don't cross-post here and in help-gnu-emacs, choose just one.]

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 13:05:57 +0800
> 
> I noticed the following strange problem:
> 
> First start Emacs like this:
> 
> $ /usr/local/bin/emacs -Q
> 
> Then run `M-x list-input-methods` and scroll down the screen in input
> method panel using the mouse or arrow key will cause Emacs
> unresponsive for about 1 minute.

It isn't necessarily strange: Emacs looks for the fonts needed to
display the relevant characters, so if you have a lot of fonts
installed, and some character is not supported, it will take Emacs a
lot of time to scan all those fonts.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
       [not found]   ` <CAGP6PO+5QjiB4jkk1x-VZrhm-gUzEiv7dC_sJH_gi1cRzMGu2Q@mail.gmail.com>
@ 2021-06-19  6:57     ` Eli Zaretskii
  2021-06-19  7:16       ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19  6:57 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 14:39:46 +0800
> 
> > > Then run `M-x list-input-methods` and scroll down the screen in input
> > > method panel using the mouse or arrow key will cause Emacs
> > > unresponsive for about 1 minute.
> >
> > It isn't necessarily strange: Emacs looks for the fonts needed to
> > display the relevant characters, so if you have a lot of fonts
> > installed, and some character is not supported, it will take Emacs a
> > lot of time to scan all those fonts.
> 
> Thank you for your analysis. That is really my situation. See below:
> 
> $ fc-list |wc
>   10597   33360 1138340

If you invoke Emacs with "emacs -Q" and then type "C-h h", how long
does it take Emacs to display the HELLO file?  And if you then scroll
down through the HELLO file, do you also see long delays at some
point?



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19  6:57     ` Eli Zaretskii
@ 2021-06-19  7:16       ` Hongyi Zhao
  2021-06-19  9:30         ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19  7:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 2:57 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 14:39:46 +0800
> >
> > > > Then run `M-x list-input-methods` and scroll down the screen in input
> > > > method panel using the mouse or arrow key will cause Emacs
> > > > unresponsive for about 1 minute.
> > >
> > > It isn't necessarily strange: Emacs looks for the fonts needed to
> > > display the relevant characters, so if you have a lot of fonts
> > > installed, and some character is not supported, it will take Emacs a
> > > lot of time to scan all those fonts.
> >
> > Thank you for your analysis. That is really my situation. See below:
> >
> > $ fc-list |wc
> >   10597   33360 1138340
>
> If you invoke Emacs with "emacs -Q" and then type "C-h h", how long
> does it take Emacs to display the HELLO file?

It presumably takes the same duration as reported before in this issue.

> And if you then scroll
> down through the HELLO file, do you also see long delays at some
> point?

Seems not.

Another strange thing: the Emacs installed from apt repo doesn't have
this problem.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19  7:16       ` Hongyi Zhao
@ 2021-06-19  9:30         ` Eli Zaretskii
  2021-06-19  9:47           ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19  9:30 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 15:16:36 +0800
> Cc: emacs-devel@gnu.org
> 
> > > $ fc-list |wc
> > >   10597   33360 1138340
> >
> > If you invoke Emacs with "emacs -Q" and then type "C-h h", how long
> > does it take Emacs to display the HELLO file?
> 
> It presumably takes the same duration as reported before in this issue.

"Presumably" means that you tried that, and the time it took was
approximately the same?

> Another strange thing: the Emacs installed from apt repo doesn't have
> this problem.

In "emacs -Q" or without the -Q switch?  If the former, what are the
differences between the two Emacs configurations, the slow one and the
fast one?  If the latter, then the reason for the faster operation is
in the init files that you get with the "apt" distribution.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19  9:30         ` Eli Zaretskii
@ 2021-06-19  9:47           ` Hongyi Zhao
  2021-06-19 10:03             ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19  9:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 5:30 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 15:16:36 +0800
> > Cc: emacs-devel@gnu.org
> >
> > > > $ fc-list |wc
> > > >   10597   33360 1138340
> > >
> > > If you invoke Emacs with "emacs -Q" and then type "C-h h", how long
> > > does it take Emacs to display the HELLO file?
> >
> > It presumably takes the same duration as reported before in this issue.
>
> "Presumably" means that you tried that, and the time it took was
> approximately the same?

Yes.

>
> > Another strange thing: the Emacs installed from apt repo doesn't have
> > this problem.
>
> In "emacs -Q" or without the -Q switch?

Either way, as shown below:

$ /usr/bin/emacs
$ /usr/bin/emacs -Q

And both the following two commands completed instantly:

M-x list-input-methods RET
C-h h

> If the former, what are the
> differences between the two Emacs configurations, the slow one and the
> fast one?  If the latter, then the reason for the faster operation is
> in the init files that you get with the "apt" distribution.

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19  9:47           ` Hongyi Zhao
@ 2021-06-19 10:03             ` Eli Zaretskii
  2021-06-19 10:16               ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 10:03 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 17:47:18 +0800
> Cc: emacs-devel@gnu.org
> 
> Either way, as shown below:
> 
> $ /usr/bin/emacs
> $ /usr/bin/emacs -Q
> 
> And both the following two commands completed instantly:
> 
> M-x list-input-methods RET
> C-h h

They also do that in my build, so the question is what is different
between your "slow" build and the "fast" build.  You need to find out
and tell us what are the differences between them in terms of
configuration, supported features, optional libraries, etc.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 10:03             ` Eli Zaretskii
@ 2021-06-19 10:16               ` Hongyi Zhao
  2021-06-19 10:31                 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19 10:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 6:03 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 17:47:18 +0800
> > Cc: emacs-devel@gnu.org
> >
> > Either way, as shown below:
> >
> > $ /usr/bin/emacs
> > $ /usr/bin/emacs -Q
> >
> > And both the following two commands completed instantly:
> >
> > M-x list-input-methods RET
> > C-h h
>
> They also do that in my build, so the question is what is different
> between your "slow" build and the "fast" build.  You need to find out
> and tell us what are the differences between them in terms of
> configuration,

Considering the above testing results, it seems the user configuration
don't play an important role in this problem.

> supported features, optional libraries, etc.

werner@X10DAi:~$ ldd /usr/bin/emacs
    linux-vdso.so.1 (0x00007fff5a725000)
    libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f4566b3f000)
    libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f4566b34000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4566b29000)
    libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f4566ad8000)
    libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00007f456696e000)
    libgpm.so.2 => /lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f4566768000)
    libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f4566736000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1
(0x00007f456670b000)
    libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30
(0x00007f4566535000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f4566512000)
    libanl.so.1 => /lib/x86_64-linux-gnu/libanl.so.1 (0x00007f456650c000)
    liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f45664b1000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4566360000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4566344000)
    libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0
(0x00007f4566295000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f45660a3000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f456609d000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f4566c80000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f4566074000)
    libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0
(0x00007f4565fe2000)
    libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0
(0x00007f4565eac000)
    libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f4565e8b000)
    libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2
(0x00007f4565d09000)
    libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f4565cf3000)
    libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 (0x00007f4565cb9000)
    libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5
(0x00007f4565c80000)
    libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f4565bfc000)
    liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f4565bdb000)
    libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20
(0x00007f4565abd000)
    libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007f4565ab1000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007f4565a8c000)
werner@X10DAi:~$ ldd /usr/local/bin/emacs
    linux-vdso.so.1 (0x00007ffc3f9c1000)
    libtiff.so.5 => /lib/x86_64-linux-gnu/libtiff.so.5 (0x00007fc49ad91000)
    libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007fc49ad0c000)
    libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fc49acd4000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc49acb8000)
    libgif.so.7 => /lib/x86_64-linux-gnu/libgif.so.7 (0x00007fc49acad000)
    libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007fc49a4fc000)
    libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007fc49a3f5000)
    libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0
(0x00007fc49a3a6000)
    libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007fc49a29d000)
    libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007fc49a17a000)
    libgdk_pixbuf-2.0.so.0 =>
/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007fc49a152000)
    libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0
(0x00007fc499f71000)
    libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0
(0x00007fc499f0f000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007fc499de6000)
    libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007fc499ddb000)
    libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007fc499dbd000)
    libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc499c80000)
    libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1
(0x00007fc499c7b000)
    libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fc499c4f000)
    libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1
(0x00007fc499a45000)
    libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007fc49994a000)
    librsvg-2.so.2 => /lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007fc49901f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc498ed0000)
    libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007fc498ec5000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc498eb8000)
    libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fc498e67000)
    libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fc498e5f000)
    libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007fc498e4a000)
    libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00007fc498ce0000)
    libgpm.so.2 => /lib/x86_64-linux-gnu/libgpm.so.2 (0x00007fc498ada000)
    libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007fc498aa8000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1
(0x00007fc498a7d000)
    libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6
(0x00007fc4989be000)
    libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007fc498977000)
    libotf.so.0 => /lib/x86_64-linux-gnu/libotf.so.0 (0x00007fc49895f000)
    libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30
(0x00007fc498789000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fc498764000)
    libanl.so.1 => /lib/x86_64-linux-gnu/libanl.so.1 (0x00007fc49875e000)
    liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007fc498703000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc4986fd000)
    libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0
(0x00007fc49864e000)
    libjansson.so.4 => /lib/x86_64-linux-gnu/libjansson.so.4
(0x00007fc49863f000)
    libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007fc4985b9000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc4983c7000)
    libwebp.so.6 => /lib/x86_64-linux-gnu/libwebp.so.6 (0x00007fc49815e000)
    libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fc4980b5000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fc49808c000)
    libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007fc497e7e000)
    libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
(0x00007fc497e76000)
    libpangocairo-1.0.so.0 =>
/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007fc497e64000)
    libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007fc497e52000)
    libcairo-gobject.so.2 =>
/lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007fc497e46000)
    libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0
(0x00007fc497e1c000)
    libatk-bridge-2.0.so.0 =>
/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007fc497de5000)
    libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007fc497cb0000)
    libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0
(0x00007fc497c93000)
    libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0
(0x00007fc497c7a000)
    libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1
(0x00007fc497c75000)
    libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007fc497c68000)
    libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1
(0x00007fc497c5b000)
    libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1
(0x00007fc497c54000)
    libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1
(0x00007fc497c4f000)
    libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0
(0x00007fc497c0d000)
    libwayland-cursor.so.0 =>
/lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007fc497c02000)
    libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1
(0x00007fc497bfd000)
    libwayland-client.so.0 =>
/lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007fc497bec000)
    libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007fc497bdf000)
    libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0
(0x00007fc497b38000)
    libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0
(0x00007fc497b33000)
    libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0
(0x00007fc497b24000)
    libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007fc497ac4000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fc497aa6000)
    libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007fc497a9a000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fc497a27000)
    libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fc497a1e000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fc497a04000)
    libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fc4979fc000)
    libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fc4979f4000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc49b506000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc4979d9000)
    libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0
(0x00007fc497949000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fc49791b000)
    libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0
(0x00007fc4977e3000)
    libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007fc4977c2000)
    libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2
(0x00007fc497640000)
    libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007fc49762a000)
    libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 (0x00007fc4975f0000)
    libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5
(0x00007fc4975b9000)
    liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fc497596000)
    libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20
(0x00007fc497478000)
    libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007fc497441000)
    libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007fc497437000)
    libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007fc4973de000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007fc4973bb000)

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 10:16               ` Hongyi Zhao
@ 2021-06-19 10:31                 ` Eli Zaretskii
  2021-06-19 10:48                   ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 10:31 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 18:16:40 +0800
> Cc: emacs-devel@gnu.org
> 
> > > And both the following two commands completed instantly:
> > >
> > > M-x list-input-methods RET
> > > C-h h
> >
> > They also do that in my build, so the question is what is different
> > between your "slow" build and the "fast" build.  You need to find out
> > and tell us what are the differences between them in terms of
> > configuration,
> 
> Considering the above testing results, it seems the user configuration
> don't play an important role in this problem.
> 
> > supported features, optional libraries, etc.

Thanks, but I meant the values of the following variables inside
Emacs:

  system-configuration
  system-configuration-options
  system-configuration-features

And please show them in both builds: the "slow" one and the "fast"
one.  We need to compare them.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 10:31                 ` Eli Zaretskii
@ 2021-06-19 10:48                   ` Hongyi Zhao
  2021-06-19 10:55                     ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19 10:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 6:31 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 18:16:40 +0800
> > Cc: emacs-devel@gnu.org
> >
> > > > And both the following two commands completed instantly:
> > > >
> > > > M-x list-input-methods RET
> > > > C-h h
> > >
> > > They also do that in my build, so the question is what is different
> > > between your "slow" build and the "fast" build.  You need to find out
> > > and tell us what are the differences between them in terms of
> > > configuration,
> >
> > Considering the above testing results, it seems the user configuration
> > don't play an important role in this problem.
> >
> > > supported features, optional libraries, etc.
>
> Thanks, but I meant the values of the following variables inside
> Emacs:
>
>   system-configuration
>   system-configuration-options
>   system-configuration-features
>
> And please show them in both builds: the "slow" one and the "fast"
> one.  We need to compare them.

The slow self compiled git master version:

system-configuration:

"x86_64-pc-linux-gnu"

system-configuration-options:

"--without-m17n-flt"


system-configuration-features:

"ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB"

The fast prebuilt version shipped with the apt repo:

system-configuration:

"x86_64-pc-linux-gnu"


system-configuration-options:

"--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/ma\
    n --enable-libsystemd --with-pop=yes
--enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26\
    .3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa
--without-gconf --with-mailutils --build x86_64-linux-gnu
--prefix=/usr --sharedstatedir=/var/lib --lib\
    execdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
--with-pop=yes --enable-locallisppath=/etc/emacs:\
    /usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
--with-sound=alsa --without-gco\
    nf --with-mailutils --with-x=no --without-gsettings 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/emacs-mEZBk7/emacs-26.3+1=.
-fstack-protector-strong -Wformat -Werro\
    r=format-security -Wall' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'"


system-configuration-features:

 "JPEG SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB XIM
THREADS LIBSYS\
    TEMD LCMS2"


HY
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 10:48                   ` Hongyi Zhao
@ 2021-06-19 10:55                     ` Eli Zaretskii
  2021-06-19 11:00                       ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 10:55 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 18:48:28 +0800
> Cc: emacs-devel@gnu.org
> 
> The slow self compiled git master version:
> 
> system-configuration:
> 
> "x86_64-pc-linux-gnu"
> 
> system-configuration-options:
> 
> "--without-m17n-flt"
> 
> 
> system-configuration-features:
> 
> "ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
> JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY
> INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
> TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB"
> 
> The fast prebuilt version shipped with the apt repo:
> 
> system-configuration:
> 
> "x86_64-pc-linux-gnu"
> 
> 
> system-configuration-options:
> 
> "--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
> --libexecdir=/usr/lib --localstatedir=/var/lib
> --infodir=/usr/share/info --mandir=/usr/share/ma\
>     n --enable-libsystemd --with-pop=yes
> --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26\
>     .3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa
> --without-gconf --with-mailutils --build x86_64-linux-gnu
> --prefix=/usr --sharedstatedir=/var/lib --lib\
>     execdir=/usr/lib --localstatedir=/var/lib
> --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
> --with-pop=yes --enable-locallisppath=/etc/emacs:\
>     /usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
> --with-sound=alsa --without-gco\
>     nf --with-mailutils --with-x=no --without-gsettings 'CFLAGS=-g -O2
> -fdebug-prefix-map=/build/emacs-mEZBk7/emacs-26.3+1=.
> -fstack-protector-strong -Wformat -Werro\
>     r=format-security -Wall' 'CPPFLAGS=-Wdate-time
> -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'"
> 
> 
> system-configuration-features:
> 
>  "JPEG SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB XIM
> THREADS LIBSYS\
>     TEMD LCMS2"

The fast version is an optimized build, the slow one is unoptimized.
That explains at least part of the slowness.  The fast version also
doesn't include any text-shaping engine, which might speed up Emacs,
but prevents it from correctly displaying complex scripts.

What are the Emacs versions of the two builds?



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 10:55                     ` Eli Zaretskii
@ 2021-06-19 11:00                       ` Eli Zaretskii
  2021-06-19 13:42                         ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 11:00 UTC (permalink / raw)
  To: hongyi.zhao; +Cc: emacs-devel

> Date: Sat, 19 Jun 2021 13:55:51 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> The fast version is an optimized build, the slow one is unoptimized.
> That explains at least part of the slowness.  The fast version also
> doesn't include any text-shaping engine, which might speed up Emacs,
> but prevents it from correctly displaying complex scripts.
> 
> What are the Emacs versions of the two builds?

Sorry, I see now that its Emacs 26.3 and 28.

And I guess the Emacs 28 build also used the default optimization
options, unlike what I said before.

So the only difference I see is the text-shaping engine that is
missing in the "fast" version.  I don't think I understand why that
should have such a profound effect on the speed of finding fonts,
sorry.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 11:00                       ` Eli Zaretskii
@ 2021-06-19 13:42                         ` Hongyi Zhao
  2021-06-19 13:49                           ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19 13:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 7:00 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Date: Sat, 19 Jun 2021 13:55:51 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: emacs-devel@gnu.org
> >
> > The fast version is an optimized build, the slow one is unoptimized.
> > That explains at least part of the slowness.  The fast version also
> > doesn't include any text-shaping engine, which might speed up Emacs,
> > but prevents it from correctly displaying complex scripts.
> >
> > What are the Emacs versions of the two builds?
>
> Sorry, I see now that its Emacs 26.3 and 28.
>
> And I guess the Emacs 28 build also used the default optimization
> options, unlike what I said before.

Could you please provide me with the optimization options applicable
to Emacs 28, so that I can give it a try?

>
> So the only difference I see is the text-shaping engine that is
> missing in the "fast" version.  I don't think I understand why that
> should have such a profound effect on the speed of finding fonts,
> sorry.

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 13:42                         ` Hongyi Zhao
@ 2021-06-19 13:49                           ` Eli Zaretskii
  2021-06-19 14:19                             ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 13:49 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 21:42:09 +0800
> Cc: emacs-devel@gnu.org
> 
> > And I guess the Emacs 28 build also used the default optimization
> > options, unlike what I said before.
> 
> Could you please provide me with the optimization options applicable
> to Emacs 28, so that I can give it a try?

Look in src/Makefile: what do you see in CFLAGS there?



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 13:49                           ` Eli Zaretskii
@ 2021-06-19 14:19                             ` Hongyi Zhao
  2021-06-19 14:28                               ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19 14:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 9:49 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 21:42:09 +0800
> > Cc: emacs-devel@gnu.org
> >
> > > And I guess the Emacs 28 build also used the default optimization
> > > options, unlike what I said before.
> >
> > Could you please provide me with the optimization options applicable
> > to Emacs 28, so that I can give it a try?
>
> Look in src/Makefile: what do you see in CFLAGS there?

$ egrep CFLAGS src/Makefile
CFLAGS = -g3 -O2
PROFILING_CFLAGS =
WARN_CFLAGS =  -fno-common -Wall -Wdate-time -Wdisabled-optimization
-Wdouble-promotion -Wduplicated-cond -Wextra -Wformat-signedness
-Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations
-Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs
-Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked
-Wpointer-arith -Wstrict-prototypes -Wsuggest-attribute=format
-Wsuggest-attribute=noreturn -Wsuggest-final-methods
-Wsuggest-final-types -Wtrampolines -Wuninitialized -Wunknown-pragmas
-Wunused-macros -Wvariadic-macros -Wvector-operation-performance
-Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wformat=2
-Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2
-Wvla-larger-than=4031 -Wredundant-decls
-Wno-missing-field-initializers -Wno-override-init -Wno-sign-compare
-Wno-type-limits -Wno-unused-parameter -Wno-format-nonliteral
WERROR_CFLAGS =
## Machine-specific CFLAGS.
## System-specific CFLAGS.
GNUSTEP_CFLAGS=
PNG_CFLAGS=-isystem /usr/include/libpng16
FONTCONFIG_CFLAGS = -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
FREETYPE_CFLAGS = -isystem /usr/include/freetype2 -isystem /usr/include/libpng16
HARFBUZZ_CFLAGS = -isystem /usr/local/include/harfbuzz -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
LIBOTF_CFLAGS = -isystem /usr/include/freetype2 -isystem /usr/include/libpng16
M17N_FLT_CFLAGS =
DBUS_CFLAGS = -isystem /usr/include/dbus-1.0 -isystem
/usr/lib/x86_64-linux-gnu/dbus-1.0/include
SETTINGS_CFLAGS = -pthread -isystem /usr/include/libmount -isystem
/usr/include/blkid -isystem /usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include
NOTIFY_CFLAGS =
CFLAGS_SOUND=
RSVG_CFLAGS= -pthread -isystem /usr/include/librsvg-2.0 -isystem
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libmount -isystem
/usr/include/blkid -isystem /usr/include/cairo -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/pixman-1 -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
WEBKIT_CFLAGS=
CAIRO_CFLAGS= -isystem /usr/include/cairo -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/pixman-1 -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
IMAGEMAGICK_CFLAGS=
LIBXML2_CFLAGS = -isystem /usr/local/include/libxml2
LCMS2_CFLAGS =
XRANDR_CFLAGS =
XINERAMA_CFLAGS =
XFIXES_CFLAGS =
XDBE_CFLAGS =
GNU_OBJC_CFLAGS=$(patsubst -specs=%-hardened-cc1,,)
LIBGNUTLS_CFLAGS = -isystem /usr/include/p11-kit-1
LIBSYSTEMD_CFLAGS =
JSON_CFLAGS =
# Flags that might be in WARN_CFLAGS but are not valid for Objective C.
NON_OBJC_CFLAGS = -Wignored-attributes -Wignored-qualifiers -Wopenmp-simd
EMACS_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
  $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
  $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
  $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(XFIXES_CFLAGS) $(XDBE_CFLAGS) \
  $(WE$ egrep CFLAGS src/Makefile
CFLAGS = -g3 -O2
PROFILING_CFLAGS =
WARN_CFLAGS =  -fno-common -Wall -Wdate-time -Wdisabled-optimization
-Wdouble-promotion -Wduplicated-cond -Wextra -Wformat-signedness
-Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations
-Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs
-Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked
-Wpointer-arith -Wstrict-prototypes -Wsuggest-attribute=format
-Wsuggest-attribute=noreturn -Wsuggest-final-methods
-Wsuggest-final-types -Wtrampolines -Wuninitialized -Wunknown-pragmas
-Wunused-macros -Wvariadic-macros -Wvector-operation-performance
-Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wformat=2
-Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2
-Wvla-larger-than=4031 -Wredundant-decls
-Wno-missing-field-initializers -Wno-override-init -Wno-sign-compare
-Wno-type-limits -Wno-unused-parameter -Wno-format-nonliteral
WERROR_CFLAGS =
## Machine-specific CFLAGS.
## System-specific CFLAGS.
GNUSTEP_CFLAGS=
PNG_CFLAGS=-isystem /usr/include/libpng16
FONTCONFIG_CFLAGS = -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
FREETYPE_CFLAGS = -isystem /usr/include/freetype2 -isystem /usr/include/libpng16
HARFBUZZ_CFLAGS = -isystem /usr/local/include/harfbuzz -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
LIBOTF_CFLAGS = -isystem /usr/include/freetype2 -isystem /usr/include/libpng16
M17N_FLT_CFLAGS =
DBUS_CFLAGS = -isystem /usr/include/dbus-1.0 -isystem
/usr/lib/x86_64-linux-gnu/dbus-1.0/include
SETTINGS_CFLAGS = -pthread -isystem /usr/include/libmount -isystem
/usr/include/blkid -isystem /usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include
NOTIFY_CFLAGS =
CFLAGS_SOUND=
RSVG_CFLAGS= -pthread -isystem /usr/include/librsvg-2.0 -isystem
/usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libmount -isystem
/usr/include/blkid -isystem /usr/include/cairo -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/pixman-1 -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
WEBKIT_CFLAGS=
CAIRO_CFLAGS= -isystem /usr/include/cairo -isystem
/usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem
/usr/include/pixman-1 -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16
IMAGEMAGICK_CFLAGS=
LIBXML2_CFLAGS = -isystem /usr/local/include/libxml2
LCMS2_CFLAGS =
XRANDR_CFLAGS =
XINERAMA_CFLAGS =
XFIXES_CFLAGS =
XDBE_CFLAGS =
GNU_OBJC_CFLAGS=$(patsubst -specs=%-hardened-cc1,,)
LIBGNUTLS_CFLAGS = -isystem /usr/include/p11-kit-1
LIBSYSTEMD_CFLAGS =
JSON_CFLAGS =
# Flags that might be in WARN_CFLAGS but are not valid for Objective C.
NON_OBJC_CFLAGS = -Wignored-attributes -Wignored-qualifiers -Wopenmp-simd
EMACS_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
  $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
  $(PNG_CFLAGS) $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
  $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(XFIXES_CFLAGS) $(XDBE_CFLAGS) \
  $(WEBKIT_CFLAGS) $(LCMS2_CFLAGS) \
  $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
  $(HARFBUZZ_CFLAGS) $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \
  $(LIBSYSTEMD_CFLAGS) $(JSON_CFLAGS) \
  $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \
  $(WERROR_CFLAGS)
ALL_CFLAGS = $(EMACS_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \
  $(filter-out $(NON_OBJC_CFLAGS),$(WARN_CFLAGS)) $(CFLAGS) \
  $(GNU_OBJC_CFLAGS)
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $<
      $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) ${CHK_SOURCES} || true
BKIT_CFLAGS) $(LCMS2_CFLAGS) \
  $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
  $(HARFBUZZ_CFLAGS) $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \
  $(LIBSYSTEMD_CFLAGS) $(JSON_CFLAGS) \
  $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \
  $(WERROR_CFLAGS)
ALL_CFLAGS = $(EMACS_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \
  $(filter-out $(NON_OBJC_CFLAGS),$(WARN_CFLAGS)) $(CFLAGS) \
  $(GNU_OBJC_CFLAGS)
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $<
      $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
    $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) ${CHK_SOURCES} || true

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 14:19                             ` Hongyi Zhao
@ 2021-06-19 14:28                               ` Eli Zaretskii
  2021-06-19 15:17                                 ` Hongyi Zhao
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2021-06-19 14:28 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Sat, 19 Jun 2021 22:19:16 +0800
> Cc: emacs-devel@gnu.org
> 
> > > Could you please provide me with the optimization options applicable
> > > to Emacs 28, so that I can give it a try?
> >
> > Look in src/Makefile: what do you see in CFLAGS there?
> 
> $ egrep CFLAGS src/Makefile
> CFLAGS = -g3 -O2
               ^^^
This is it.  the same as in the Emacs 26.3 build, which is "fast".



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite.
  2021-06-19 14:28                               ` Eli Zaretskii
@ 2021-06-19 15:17                                 ` Hongyi Zhao
  0 siblings, 0 replies; 17+ messages in thread
From: Hongyi Zhao @ 2021-06-19 15:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Sat, Jun 19, 2021 at 10:28 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Sat, 19 Jun 2021 22:19:16 +0800
> > Cc: emacs-devel@gnu.org
> >
> > > > Could you please provide me with the optimization options applicable
> > > > to Emacs 28, so that I can give it a try?
> > >
> > > Look in src/Makefile: what do you see in CFLAGS there?
> >
> > $ egrep CFLAGS src/Makefile
> > CFLAGS = -g3 -O2
>                ^^^
> This is it.  the same as in the Emacs 26.3 build, which is "fast".

I tried with the following configuration options:

./configure CFLAGS="-g3 -O2" --without-m17n-flt

But the problem remains the same.

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-06-19 15:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-19  5:05 Run `M-x list-input-methods` and then scroll down the screen in input method panel using the mouse or arrow key will cause Emacs unresponsive for about 1 minite Hongyi Zhao
2021-06-19  6:13 ` Eli Zaretskii
     [not found]   ` <CAGP6PO+5QjiB4jkk1x-VZrhm-gUzEiv7dC_sJH_gi1cRzMGu2Q@mail.gmail.com>
2021-06-19  6:57     ` Eli Zaretskii
2021-06-19  7:16       ` Hongyi Zhao
2021-06-19  9:30         ` Eli Zaretskii
2021-06-19  9:47           ` Hongyi Zhao
2021-06-19 10:03             ` Eli Zaretskii
2021-06-19 10:16               ` Hongyi Zhao
2021-06-19 10:31                 ` Eli Zaretskii
2021-06-19 10:48                   ` Hongyi Zhao
2021-06-19 10:55                     ` Eli Zaretskii
2021-06-19 11:00                       ` Eli Zaretskii
2021-06-19 13:42                         ` Hongyi Zhao
2021-06-19 13:49                           ` Eli Zaretskii
2021-06-19 14:19                             ` Hongyi Zhao
2021-06-19 14:28                               ` Eli Zaretskii
2021-06-19 15:17                                 ` Hongyi Zhao

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).