From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.devel 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 Message-ID: References: <837diqxty3.fsf@gnu.org> <8335texrxf.fsf@gnu.org> <83wnqqw69t.fsf@gnu.org> <83v96aw4ql.fsf@gnu.org> <83tuluw3fn.fsf@gnu.org> <83sg1ew2bs.fsf@gnu.org> <83r1gyw244.fsf@gnu.org> <83eecyvu9z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 19 16:20:28 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lubpj-0001Ke-OS for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Jun 2021 16:20:27 +0200 Original-Received: from localhost ([::1]:47224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lubpi-0000oZ-GG for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Jun 2021 10:20:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luboq-0008W3-Vb for emacs-devel@gnu.org; Sat, 19 Jun 2021 10:19:32 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:44576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luboo-0003cJ-TU; Sat, 19 Jun 2021 10:19:32 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id a11so8795558lfg.11; Sat, 19 Jun 2021 07:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Plr8EQRqFmUucRU79WrFiPhIAX28GZaFuevHsDzyZMk=; b=T9YSrypIgKhQObdJ+kj0cmzvxdc1jn5NGX+niDCtEl170znF2xreZBjFEHC5P9Ny1G LHMtMx1CR/bifisvK8Dvh7K7XuM6+/imBlVKeE5IHzKTX/B6V38g+mMDZLbhzUoSRNp0 3WEyqiYPZJj2nX+yy9oT6mN62ra70uTLAoV2ujUa0rKQLgdcOfvw1qqNE+YSRVnZxrIG YYK8ZnVEW4j1ou/yWrOm4SGA/ivGV4R6anlsD2HRHNXwcxyWYZDBIf5KiPjKxrV/n7qt OkDHuoMth+jTdecKiAB2yPfpFs/XdAthkMAClPPwMgfYBoTV7DtD6pqSvZwAHnKz2TBL WNfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Plr8EQRqFmUucRU79WrFiPhIAX28GZaFuevHsDzyZMk=; b=UGhbwvwIb3/LaehrHWt2M9df13LzG1cuW8H5oexVTP61W8GSrSPU8PpfwaILIgh8h1 ARDGCMkyrIZ4AUacId9rqS6z5Kc4pB85mSmayM5HShkqWEIpkwllbjv88Rmg09PFbR5M aa/T0PEd7Ke67iPKREC8+OqITeCoBYC/PHANsWv12rd4bcye8UovzQpT4r4StjxjXvs0 /ANpH58TrnAFAuQiwFZ6onV54KDpCfBz7QrxFiKud7W35etW+DilEjzLGn0U5VCOHz4k qjw7rZJuNjNY0GREeeXDBo/3YWwdkxcofiIKs2JQ71rOu6zqJ8CfJJ+XAwsRo5zMhljQ Q3pw== X-Gm-Message-State: AOAM531Nee5xnLkBNIEqvAXRcFyFjDfoqhLSaH1fUts1RPqhSwFCnCxR FrRI4gKnD6mniLJCGq8eGn1JpzWCii3PKrqKpjUzZ2hE0oXvZZ7gHxw= X-Google-Smtp-Source: ABdhPJw9OeDS8pb/O1MbXLsAMqbm07h8DYGReZ7yOrndNRMPQOH+TYqwhYyTW7LVPXKOdejD4traWK08FsW+9K7noRA= X-Received: by 2002:a19:2d01:: with SMTP id k1mr6971568lfj.461.1624112368218; Sat, 19 Jun 2021 07:19:28 -0700 (PDT) In-Reply-To: <83eecyvu9z.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270949 Archived-At: On Sat, Jun 19, 2021 at 9:49 PM Eli Zaretskii wrote: > > > From: Hongyi Zhao > > 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 Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China