From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Damm Newsgroups: gmane.emacs.help Subject: Re: switch-to-buffer slow on PGTK Date: Thu, 01 Feb 2024 20:51:30 +0100 Message-ID: <87bk90c685.fsf@jonas-damm.de> References: <87il38jujv.fsf@jonas-damm.de> <87wmrol0xz.fsf@gnu.org> <87plxgcems.fsf@jonas-damm.de> <87il38cdhd.fsf@jonas-damm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.8; emacs 30.0.50 Cc: Jonas Damm , Users list for the GNU Emacs text editor To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 01 20:53:24 2024 Return-path: Envelope-to: geh-help-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 1rVd7j-0007F4-Ky for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Feb 2024 20:53:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVd7K-0002uD-5A; Thu, 01 Feb 2024 14:52:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVd7G-0002ty-6l for help-gnu-emacs@gnu.org; Thu, 01 Feb 2024 14:52:54 -0500 Original-Received: from dd15330.kasserver.com ([85.13.136.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVd72-0004zE-0J; Thu, 01 Feb 2024 14:52:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonas-damm.de; s=kas202309021153; t=1706817149; bh=EWIcmKiAm4kzwawbUJ2GfBfgN0J7hCmzVgqdM4v7O6M=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=fk4s6CLu+/QmYirkqE0YblrfRTxMpmdPQRW+y+sUq0ZemHhUEaqRoDPHZh74C9COC tfOEJwF8cCfxO8auLzfDZApaRE1yIyobKijxcQSjyj8rWb+5YN2YQe5h48vOzoWFu+ 874cgaxrruy4hy+otUMo66D3LefP2VS8XmzO98nKVoby+150pSLiYUofuDe4jNGJBS 5yEm7dOTzPh52nMUZ5yYt9muZnPYzVnfkvG/WKLglpX0mwpeoIXoIe0943E71ygdc8 Jnlj5kagOOnzp11iR1kHl9GPQ6RxGSKd4LIDEaiGjG8M2yQdwkSePZ1B3xzB+VHX7T 69xDw1B63wPQg== Original-Received: from jonas-x201 (dynamic-046-114-170-182.46.114.pool.telefonica.de [46.114.170.182]) by dd15330.kasserver.com (Postfix) with ESMTPSA id D2EA57500325; Thu, 1 Feb 2024 20:52:28 +0100 (CET) In-reply-to: X-Spamd-Bar: - Received-SPF: pass client-ip=85.13.136.159; envelope-from=mailing@jonas-damm.de; helo=dd15330.kasserver.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145850 Archived-At: Thanks, I think i narrowed it down to the function ivy-rich-switch-buffer-root-lookup 12,751,393 97% - command-execute 12,751,393 97% - funcall-interactively 9,030,352 68% - ivy-switch-buffer 9,030,352 68% - ivy-read 9,030,352 68% - apply 9,030,352 68% - # 8,992,824 68% - read-from-minibuffer 8,824,107 67% - ivy--queue-exhibit 8,824,107 67% - ivy--exhibit 8,817,497 67% - ivy--update-minibuffer 8,816,473 67% - ivy--format 8,815,449 67% - ivy-rich--ivy-switch-buffer-transformer 8,815,449 67% - ivy-rich-format 8,814,401 67% - # 8,814,401 67% - ivy-rich-format-column 4,577,350 34% - ivy-rich-switch-buffer-project 4,577,350 34% - ivy-rich-switch-buffer-root 4,576,302 34% + ivy-rich-switch-buffer-root-lookup 1,048 0% ivy-rich--switch-buffer-directory 4,201,388 32% - ivy-rich-switch-buffer-path 4,201,388 32% - ivy-rich--switch-buffer-root-and-filename 4,201,388 32% - ivy-rich-switch-buffer-root 4,201,388 32% - ivy-rich-switch-buffer-root-lookup "Tassilo Horn" writes: > Am Do, 1. Feb 2024, um 18:15, schrieb Jonas Damm: >> This is the output of the profiler: >> >> 22,744,487 98% + command-execute >> 453,256 1% + redisplay_internal (C function) >> 7,279 0% Automatic GC >> 912 0% + timer-event-handler >> 21 0% + help-command-error-confusable-suggestions >> 0 0% ... >> >> How can i narrow it down further? > > You can expand the tree below command-execute by clicking on the + > sign. But note that the time (22secs) also contains the time Emacs > waited for your input. > > Bye, > Tassilo