From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72826: 30.0.90; icomplete-in-buffer becomes unusably slow in large Eshell Date: Tue, 27 Aug 2024 15:43:28 +0300 Message-ID: <86r0aai1an.fsf@gnu.org> References: <87seuqjuk4.fsf@melete.silentflame.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72826@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 27 14:44:50 2024 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 1sivZ4-0008k4-94 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 14:44:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sivYf-0000VP-N9; Tue, 27 Aug 2024 08:44:25 -0400 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 1sivYP-0008Oq-P8 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:44:15 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sivYP-0000cx-CV for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:44:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=D1vbSiqYmQCQmYorou21qoTcQPVOo4t3uIBkHqWc+5Y=; b=pYe1ouf4K60t7HCYn7Y4eZZtX2HIZLvCWzmqYnUbKefUL4VcFwG71ZFsrsN/boW009hFCec9wZKl7JsbwuXnYm5XUgK8//t4CvyctcomcLrBmp/D5876rQt8/CP7Oz+LohkuwHM4ZyO5NrwrQS1UMxUWyXpCE1Hs39Hm0QxOIdsV1CMMQiQQWCLNDoHzRpTspB9IA5gvug6Vt3aIFVD0QS/S4R3XOktr45fguZd7FW/TCx7PGpVG2+aTXrNq2K5FeKMUo0bEnwS0Cl3o1rycph9hhihoOaI94Fjvxk5//PvfJ9KZ5w5CX9UZx5yN5lklewdKseTTAV5UNZbsgHsjYw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sivZF-0002Jw-KX for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 12:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72826 X-GNU-PR-Package: emacs Original-Received: via spool by 72826-submit@debbugs.gnu.org id=B72826.17247626728870 (code B ref 72826); Tue, 27 Aug 2024 12:45:01 +0000 Original-Received: (at 72826) by debbugs.gnu.org; 27 Aug 2024 12:44:32 +0000 Original-Received: from localhost ([127.0.0.1]:46228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sivYl-0002J0-O2 for submit@debbugs.gnu.org; Tue, 27 Aug 2024 08:44:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sivYj-0002In-Ds for 72826@debbugs.gnu.org; Tue, 27 Aug 2024 08:44:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sivXn-0000ba-7F; Tue, 27 Aug 2024 08:43:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=D1vbSiqYmQCQmYorou21qoTcQPVOo4t3uIBkHqWc+5Y=; b=KIfPkXGiZFbj 8vcqudhd2KMifecCkFA8UnVCJrbI2Z7PsrvV5G/IWghbnDIb/wZhABIdQ1GoSHaOeNjD1RQX+hu17 g6cJaRCpuMjF5d4hEGW1xA3Qbx6ciN87XrFf9zjK0A/ymEsByw7ARGiag9lq0ja3EXS3zWy7DzB+Z fc7A74EE+MH1itMwUfkauq0E+xn9yBa+cPWhg9lX06P3arvTueLvLcp+rt7KEiJWGs1WTUwYVNWVO Ty/vu06qdF1X+KEHW2fxFNDAvYTbfG00jiVEEszZWxb9M3kxO1857pK9niMZLWJgskS1xJ1rewdti qAekWbr00OJ5EhvHy+lskg==; In-Reply-To: <87seuqjuk4.fsf@melete.silentflame.com> (message from Sean Whitton on Tue, 27 Aug 2024 15:26:03 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290819 Archived-At: > From: Sean Whitton > Date: Tue, 27 Aug 2024 15:26:03 +0800 > > Hello, > > 1. emacs -q > 2. (setopt icomplete-in-buffer t) > 3. M-x icomplete-mode > 4. M-x eshell > 5. cat very_large_file.txt # I'm using an 80k line log file > 6. ls > 7. Try to use C-, and C-. to cycle through the completions. > => Emacs basically locks up. > > The buffer being large should surely not affect icomplete-in-buffer in > this way. It shouldn't need to care about all the rest of the buffer. Strangely enough, I can only reproduce this on GNU/Linux, but not on MS-Windows. Profiling seems to indicate most of the time is spent in completion-all-sorted-completions and in GC.