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 17:48:11 +0100 Message-ID: <87plxgcems.fsf@jonas-damm.de> References: <87il38jujv.fsf@jonas-damm.de> <87wmrol0xz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.8; emacs 30.0.50 Cc: Jonas Damm , help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 01 17:58:39 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 1rVaOd-0006j2-2w for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Feb 2024 17:58:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVaI4-0005NS-HQ; Thu, 01 Feb 2024 11:51:52 -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 1rVaHF-00054n-QN for help-gnu-emacs@gnu.org; Thu, 01 Feb 2024 11:51: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 1rVaHB-0004TE-Gv; Thu, 01 Feb 2024 11:50:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonas-damm.de; s=kas202309021153; t=1706806253; bh=HwhOSgvB8UrYCLRHaDCnb20FxHYbG0BdBKCQ3b7AyfY=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=s2aAHcrGdyvaWsSJBZWj9k+4Kyl2O4kMYCO73GlxxleRPZ7evlqL3NuKJl31iQwEK erHir6AJg19izie2lmg4emNPzQIn6INKXuiGDxZYu0WG3kjSQPotPs4ehXUK72n/5n mQR28l3BzmdArcbYFQXRxhZSk4eM0FPkLLXEQ6WtXwysg9jyElukTF8iKGh3PmmmV1 Zr91aFli5AudpzL7vofHnvDCFBph1ZMFF78ix03l/GcF2t33rvt/2a2B/2a5AELx43 jQH7WQ05dtCRsdt6thESXPaRpjTgJwApaDNbfq/l9iWyZelu+Q+dUCi5vDBGyd7a91 2qYza+Yq+5NMw== 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 4B28A7500129; Thu, 1 Feb 2024 17:50:53 +0100 (CET) In-reply-to: <87wmrol0xz.fsf@gnu.org> 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:145846 Archived-At: Currently i have 37 Buffers open. I think thats normal. My uptime is only a few hours and switch-to-buffer takes already more then a second. Tassilo Horn writes: > Jonas Damm writes: > > Hi Jonas, > >> I am using emacs 30 (GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, >> GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-02-01) on Debian >> Sway (wayland) on a ryzen 3600G with 32G of fast memory. >> >> switch-to-buffer gets slower and slower, the longer the >> machine is running. > > How many open buffers do you have? > > M-: (length (buffer-list)) RET > > will tell you. If it's an unusal amount, you can eval > > (dolist (b (buffer-list)) > (message "%S" (buffer-name b))) <=== C-x C-e here! > > in order to print all buffers' names to *Messages*. My guess is you use > some package which creates buffers over buffers without cleaning up. > > Bye, > Tassilo