From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jamie Brandon Newsgroups: gmane.emacs.bugs Subject: bug#41267: 26.3; Frame creation spends 1-2s in face-set-after-frame-default Date: Thu, 14 May 2020 11:34:49 -0700 Message-ID: <87wo5e4b7a.fsf@scattered-thoughts.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109759"; mail-complaints-to="usenet@ciao.gmane.io" To: 41267@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 14 20:40:16 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 1jZImG-000SQj-B4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 20:40:16 +0200 Original-Received: from localhost ([::1]:45984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZImF-0001AK-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 14:40:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZIm2-00018x-4f for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 14:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZIm1-0005Os-Rc for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 14:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZIm1-0006fz-O9 for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 14:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jamie Brandon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 18:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41267 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158948155125562 (code B ref -1); Thu, 14 May 2020 18:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2020 18:39:11 +0000 Original-Received: from localhost ([127.0.0.1]:34796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZIlC-0006eE-NB for submit@debbugs.gnu.org; Thu, 14 May 2020 14:39:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZIh8-0006VU-He for submit@debbugs.gnu.org; Thu, 14 May 2020 14:34:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZIh8-0006sJ-8V for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 14:34:58 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:50003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZIh6-0004XS-GF for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 14:34:57 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 72F8F69D for ; Thu, 14 May 2020 14:34:53 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 14 May 2020 14:34:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= scattered-thoughts.net; h=from:to:subject:date:message-id :mime-version:content-type; s=fm1; bh=xPtmDn5DSZUmRysVFprxBGhXe2 SodDvqGus0K8YcM+s=; b=iM+rCRBrOxK3L6hrecZ+TcNP4V5+YnepbFvjl0vzFM vB0SnAqRckmCnWZqJXhbzimROCBgIDf941OE5GXsVxfoO6UvpKl7RQpT1XnxVpe8 IPwFjMmVeUodIgTDQXDUGLVraNl33jwpJZNCFTHR3vN3wP7hjQh7IGCSe8OJ4ugB /nxYLG998DLgu0qKoXg4MjonwwzXHOlcjEs+fkR0hqgGJOPw0LFrYfjaDGvD9ivT Otpav0o7sGpOVl3YKfFqWWbvdW84cFpEu9aUF4py+jEEKuaivVY1f6E8n8DQP5EX vRYxtH+dy7VWqPwAsK+qM8tV4lfqQLKvrLOiYDDOgxgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=xPtmDn5DSZUmRysVFprxBGhXe2Sod DvqGus0K8YcM+s=; b=kgpLNtj6VdGRCmnPfIY5HVOwSBJh2xiX5pn4r959jt29C yZwoM1aBiUk2x7mjUTf2w4PBQuD8HhvcDKbgysik6jwz24ukV3Fs6IO9wBxIblNi sGHnnEA4BoD0IHGOgJUCKeFFNG12tqx2tsF1VSkChu4zEReei1W/x5FN9txvraus lcQELRBGd/YuUDI1Yj22lg0w8gM/8zuuj+NNBb78xRLY9xxWt1R9IuFNGCBN9X3E LNp97qEypoxXfsY0iudy4cJkjfzVbUzfw2oc0JvjYOPHoOB+FZp/VA03Phdy2H5u xb5hmc5CpsOzqXHYPk+sFTHpgk6f5U+rJPgADZCDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleeigdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeflrghmihgvuceurhgrnhguohhnuceojhgrmhhivgesshgtrghtthgv rhgvugdqthhhohhughhhthhsrdhnvghtqeenucggtffrrghtthgvrhhnpeekffefuedtff eihfefudejieeiheefiefhvefgjeefteduhfejfeeltdevfeeiheenucffohhmrghinhep shhtrggtkhgvgigthhgrnhhgvgdrtghomhenucfkphephedtrdelvddrvddvvddrudefge enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjrghm ihgvsehstggrthhtvghrvgguqdhthhhouhhghhhtshdrnhgvth X-ME-Proxy: Original-Received: from machine (d50-92-222-134.bchsia.telus.net [50.92.222.134]) by mail.messagingengine.com (Postfix) with ESMTPA id 636B73066315 for ; Thu, 14 May 2020 14:34:52 -0400 (EDT) Received-SPF: pass client-ip=64.147.123.21; envelope-from=jamie@scattered-thoughts.net; helo=wout5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 14:15:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Thu, 14 May 2020 14:39:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:180238 Archived-At: When I launch emacsclient or make a new frame it spends 1-2s in: - make-frame 312 42% - frame-creation-function 311 42% - apply 311 42% - # 311 42% - x-create-frame-with-faces 311 42% - face-set-after-frame-default 287 39% + face-spec-recalc 274 37% If I replace face-spec-recalc with an empty function then the new frame loads instantly so I'm pretty sure that's the culprit. I have 523 faces in frame-face-alist but they all seem to be from packages I use regularly so I can't just get rid off them. Magit and notmuch account for a large minority of them. https://emacs.stackexchange.com/questions/58505/emacsclient-spending-a-lot-of-time-resetting-faces suggested that this is unexpected and should be reported as a bug. --- In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13) Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 Recent messages: widget-before-change: Text is read-only: "Attempt to change text outside editable field" Syncing... (Shell command succeeded with no output) Quit [2 times] mwheel-scroll: Beginning of buffer [13 times] widget-before-change: Text is read-only: "Attempt to change text outside editable field" Mark set When done with this frame, type M-x delete-frame [2 times] funcall-interactively: End of buffer Configured using: 'configure --prefix=/nix/store/wdad52z5419zhwv1ylha9vxhmcmrgvvc-emacs-26.3 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: direnv-mode: t global-my-mode: t my-mode: t flyspell-mode: t global-undo-tree-mode: t undo-tree-mode: t show-paren-mode: t xterm-mouse-mode: t global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t ivy-mode: t delete-selection-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Load-path shadows: /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-wash hides /run/current-system/sw/share/emacs/site-lisp/notmuch-wash /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-hello hides /run/current-system/sw/share/emacs/site-lisp/notmuch-hello /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-print hides /run/current-system/sw/share/emacs/site-lisp/notmuch-print /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-company hides /run/current-system/sw/share/emacs/site-lisp/notmuch-company /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-mua hides /run/current-system/sw/share/emacs/site-lisp/notmuch-mua /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-draft hides /run/current-system/sw/share/emacs/site-lisp/notmuch-draft /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-jump hides /run/current-system/sw/share/emacs/site-lisp/notmuch-jump /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-lib hides /run/current-system/sw/share/emacs/site-lisp/notmuch-lib /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-tree hides /run/current-system/sw/share/emacs/site-lisp/notmuch-tree /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-crypto hides /run/current-system/sw/share/emacs/site-lisp/notmuch-crypto /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-query hides /run/current-system/sw/share/emacs/site-lisp/notmuch-query /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-maildir-fcc hides /run/current-system/sw/share/emacs/site-lisp/notmuch-maildir-fcc /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-show hides /run/current-system/sw/share/emacs/site-lisp/notmuch-show /home/jamie/.emacs.d/elpa/notmuch-20200323.121/coolj hides /run/current-system/sw/share/emacs/site-lisp/coolj /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-compat hides /run/current-system/sw/share/emacs/site-lisp/notmuch-compat /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-address hides /run/current-system/sw/share/emacs/site-lisp/notmuch-address /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-parser hides /run/current-system/sw/share/emacs/site-lisp/notmuch-parser /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-tag hides /run/current-system/sw/share/emacs/site-lisp/notmuch-tag /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch hides /run/current-system/sw/share/emacs/site-lisp/notmuch /home/jamie/.emacs.d/elpa/notmuch-20200323.121/notmuch-message hides /run/current-system/sw/share/emacs/site-lisp/notmuch-message /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/wdad52z5419zhwv1ylha9vxhmcmrgvvc-emacs-26.3/share/emacs/site-lisp/site-start /home/jamie/.emacs.d/elpa/flymake-1.0.8/flymake hides /nix/store/wdad52z5419zhwv1ylha9vxhmcmrgvvc-emacs-26.3/share/emacs/26.3/lisp/progmodes/flymake /home/jamie/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /nix/store/wdad52z5419zhwv1ylha9vxhmcmrgvvc-emacs-26.3/share/emacs/26.3/lisp/emacs-lisp/let-alist Features: (shadow sort company-oddmuse company-keywords company-etags etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company-tern s dash-functional tern mail-extr emacsbug sendmail network-stream starttls url-http tls gnutls url-gw nsm url-auth url-cache parse-time vc-mtn vc-hg vc-git vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher elfeed-show elfeed-search magit-bookmark bookmark shr svg dom elfeed-csv elfeed elfeed-curl url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf elfeed-log elfeed-db elfeed-lib avl-tree generator url-queue browse-url xml-query xml notmuch-jump esh-util init direnv flyspell ispell notmuch hl-line notmuch-hello wid-edit notmuch-tree notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj notmuch-query goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag notmuch-lib notmuch-version notmuch-compat mm-view mml-smime smime dig mailcap ivy-xref format-all language-id eglot array jsonrpc ert pp ewoc debug flymake-proc flymake warnings url-util rust-mode undo-tree diff paren xt-mouse magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell pcomplete server deferred markdown-mode noutline outline easy-mmode julia-mode julia-mode-latexsubs hide-lines counsel xdg xref project dired dired-loaddefs compile comint swiper ivy flx delsel ring colir color ivy-overlay company-quickhelp pos-tip company edmacro kmacro pcase flycheck cl-extra ansi-color json map find-func help-mode rx subr-x dash multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core advice rect jka-compr atom-one-dark-theme time-date auto-compile packed finder-inf cl info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 503125 298802) (symbols 48 46802 2) (miscs 40 178 409) (strings 32 200303 194203) (string-bytes 1 5806953) (vectors 16 75940) (vector-slots 8 1524646 148766) (floats 8 4543 7707) (intervals 56 575 246) (buffers 992 17))