From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: 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.
Date: Sat, 19 Jun 2021 22:19:16 +0800 [thread overview]
Message-ID: <CAGP6POKj0cGjKqUoPSHdLtCrihgaiTZ35eVpigZBYry_+p=P2Q@mail.gmail.com> (raw)
In-Reply-To: <83eecyvu9z.fsf@gnu.org>
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
next prev parent reply other threads:[~2021-06-19 14:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2021-06-19 14:28 ` Eli Zaretskii
2021-06-19 15:17 ` Hongyi Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGP6POKj0cGjKqUoPSHdLtCrihgaiTZ35eVpigZBYry_+p=P2Q@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).