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: Sat, 03 Feb 2024 14:27:42 +0100 Message-ID: <87mssh4qy2.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="39383"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; 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 Sat Feb 03 14:29:37 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 1rWG5P-000A2g-SR for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Feb 2024 14:29:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWG50-0004eG-JN; Sat, 03 Feb 2024 08:29:10 -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 1rWG4x-0004dU-IV for help-gnu-emacs@gnu.org; Sat, 03 Feb 2024 08:29:07 -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 1rWG4v-0000zj-Pp; Sat, 03 Feb 2024 08:29:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonas-damm.de; s=kas202309021153; t=1706966934; bh=yuIDcW0pkWECMeb6MmAJf3qedx6SZHDTE8kzBPScki0=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=CQ/c2T/JQerFcRWsGUdjO5ysmDbtF2Rf2tOO/yOnd0/7+5iaI5smiPW7pLvdtMY9g 61d1vRutJ6tV9Th8x0mGQQcrknuhAaTRsScdJAb2KUC1LC/43/7Nc8lR3H9nhEWbhy TIrgBkSTu4F2idwD6o1mEO2a9J590QLMwmXM/iCbnJ49DQxo0ldVuF4QgLpgnyWuox CJh/6fCUMqMu5Ko/1YmfOWVGmQH9yDsMmByoidOC/4M8YKrX2/Wypy98quEVDC3+SO Z4+hOwP6HSCAiSjGgynBxP1586BlUsAmaofqFJZJbxCdOnBCA6/3zkJD8+Le+sSWrZ U71WTUoE38+5Q== Original-Received: from debian (unknown [213.109.200.46]) by dd15330.kasserver.com (Postfix) with ESMTPSA id 2CF537500362; Sat, 3 Feb 2024 14:28:54 +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, RCVD_IN_DNSWL_NONE=-0.0001, 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:145867 Archived-At: I think i fixed it, by adding (setq ivy-rich-project-root-cache-mode t) to my config. So far everything seem snappy. Thanks! "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