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: Fri, 04 Oct 2024 09:11:34 +0300 Message-ID: <86y134xuqx.fsf@gnu.org> References: <87seuqjuk4.fsf@melete.silentflame.com> <86r0aai1an.fsf@gnu.org> <8734ldxntq.fsf@melete.silentflame.com> <8634ldz07h.fsf@gnu.org> <87frpcwwge.fsf@melete.silentflame.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, 72826@debbugs.gnu.org, juri@linkov.net To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 04 08:12:36 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 1swbYK-0009T7-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Oct 2024 08:12:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swbXm-0004UW-E6; Fri, 04 Oct 2024 02:12:02 -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 1swbXk-0004U6-8w for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 02:12:00 -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 1swbXj-0005xx-UA for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 02:12:00 -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=UOcyY/fXbZlN7jxl/pDWl77M1ZTqyGPG9Tt6sQlPhCo=; b=hRcHa3OtxuWGd3/Lobk1YPNzTB2mualxNqKctpyYWyNPAT0xDCsdUmFzx8+KCD0bVCz5ASBJ0peFEXYI0uZziYgUAy6Dv+/gxSZKLDZFCmlcxHKCgQ8ggya3iLMOTpW7qipMwfbdH4pTgxrcnvzJsE7hLKZ6kKWnGOL56RZbm7/841XDFOmb9BG7TqQRHCYNQnWZOZ0t9RCyes0II3+REeze6XLhaBINBtcRFNYLuaPaZ7MG/syVsCZgkcd8Ah3rUiWJfOZ/mK4D673/4OWTKPPcWXc/tkAnjxmWOwmYLK6eSlI2bvkWJeaHIA60WyD+pk3LgDH4I41ib9J/eN0cew==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swbXm-0007pP-GU for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 02:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Oct 2024 06:12:02 +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.172802231030065 (code B ref 72826); Fri, 04 Oct 2024 06:12:02 +0000 Original-Received: (at 72826) by debbugs.gnu.org; 4 Oct 2024 06:11:50 +0000 Original-Received: from localhost ([127.0.0.1]:34251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swbXZ-0007or-KJ for submit@debbugs.gnu.org; Fri, 04 Oct 2024 02:11:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swbXW-0007ob-EM for 72826@debbugs.gnu.org; Fri, 04 Oct 2024 02:11:48 -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 1swbXM-0005sK-Mj; Fri, 04 Oct 2024 02:11:36 -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=UOcyY/fXbZlN7jxl/pDWl77M1ZTqyGPG9Tt6sQlPhCo=; b=lZFb9p/IrxQS qTEZ/50323t6Rg8+ATrw1rSNO5Y48cxE8K5/azpxTkryTHyTHLH+CiXdZI99oKGLiBHbeZjsdzFr7 gcRwUm2PFMT3zp+QOZvrk+HsJViKnnpW72/eUBg0j3GLzrqqq9e3JGx+K3zNfzb6koKwxKwKZtb7U Hr0zcQ331pImul/PNtnCE9Xa09PldAzfOhZIrrR++6RK2piq5EmUhXkjyUdHUotKUKRUm/og/R56g 0aYocYDVhzatFK0rA4cGXxPfmZEL4LDwEsw+yHSOO8ajgTO+mvhkOzD2zHWPdWIlDDCWORcIkaGog SREKz51YgNFJSTWyCy4+/w==; In-Reply-To: <87frpcwwge.fsf@melete.silentflame.com> (message from Sean Whitton on Fri, 04 Oct 2024 08:20:01 +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:292945 Archived-At: > From: Sean Whitton > Cc: 72826@debbugs.gnu.org, juri@linkov.net, joaotavora@gmail.com > Date: Fri, 04 Oct 2024 08:20:01 +0800 > > > Does it help to disable auto-composition-mode? > > It looks like that slightly improves the situation, but does not fix it. > It's still extremely slow. > > I think I have a fix, which I've attached. I'll test it locally for a > couple of days before installing it. Can you explain why taking a substring of the buffer text is TRT in this case and how it makes such a big difference without omitting text whose width should be measured? IOW, are you saying the current code produces too large width? if so, how can the layout of completion candidates be correct?