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#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Tue, 16 Aug 2022 15:33:20 +0300 Message-ID: <83tu6cfjvz.fsf@gnu.org> References: <87bksmx1j1.fsf@localhost> <5900f208367791fbdfe2@heytings.org> <87tu6d4txk.fsf@localhost> <835yitiucj.fsf@gnu.org> <871qthsiio.fsf@localhost> <83tu6dh97n.fsf@gnu.org> <83mtc5h1tg.fsf@gnu.org> <87v8qs34tx.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19105"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 57207@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 14:35:23 2022 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 1oNvn0-0004nA-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 14:35:23 +0200 Original-Received: from localhost ([::1]:47864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNvmz-0002nh-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 08:35:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNvli-0002kc-Sk for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNvli-0002q6-Jp for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNvli-0008FS-DG for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 08:34: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: Tue, 16 Aug 2022 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57207 X-GNU-PR-Package: emacs Original-Received: via spool by 57207-submit@debbugs.gnu.org id=B57207.166065322431678 (code B ref 57207); Tue, 16 Aug 2022 12:34:02 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 16 Aug 2022 12:33:44 +0000 Original-Received: from localhost ([127.0.0.1]:45191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNvlQ-0008Er-4V for submit@debbugs.gnu.org; Tue, 16 Aug 2022 08:33:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNvlK-0008EZ-Hi for 57207@debbugs.gnu.org; Tue, 16 Aug 2022 08:33:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNvlF-0002lX-4B; Tue, 16 Aug 2022 08:33:33 -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=u5U1A+YjNfhggM0rGXg9smVDOCIqjx9iuyXCVZpxbUA=; b=W+DAuZxOUvTy 7YWwkkz5UVOcagbxp5BvmxX0fKm1syrCwfpw4S4tsIDWC2HYGtj5Gkq5i1235gNsQGFVjVwlExeRj scRL20zKvPKn48jiyh13PHP7lpgDgExtZUD5VBqMBG7UfmCt241JPVvC7aF+y1cy1Gnh1gph8MnN8 +k+od2mCVLELGNdAbQJjj4/LsERxuqNOrgCxw0KF0JOcqVVejdz8Gd7KoPPWfWry8zDrmM5++BGou FkbAv9U8SRKfbO7Svg7GaN59jNgAJcGx8B7/LUlL/fulgtz0kCVi1fqtzyjhmWbXSNfJuwzxE3Ne1 NhTjMHFSH/Y6N39vzpmYyg==; Original-Received: from [87.69.77.57] (port=3230 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNvlE-0000aZ-K5; Tue, 16 Aug 2022 08:33:32 -0400 In-Reply-To: <87v8qs34tx.fsf@localhost> (message from Ihor Radchenko on Tue, 16 Aug 2022 17:39:22 +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" Xref: news.gmane.io gmane.emacs.bugs:239911 Archived-At: > From: Ihor Radchenko > Cc: gregory@heytings.org, 57207@debbugs.gnu.org > Date: Tue, 16 Aug 2022 17:39:22 +0800 > > Eli Zaretskii writes: > > > Does the patch below fix the issue? > > Nope, unfortunately. OK, thanks. The change is correct nonetheless, so I installed it. Gregory, perhaps we should restrict the search even further, as this loop could take some tangible time with very large files. How about if we search from window-start point instead of BEGV, and limit the search by, say, 10,000,000 newlines and 200,000,000 characters, whichever happens first? Is it really likely to have files with so many short lines, followed by long lines?