From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Fri, 5 Aug 2022 16:11:28 +0300 Message-ID: <2d01954c-9246-9007-a1d5-037f6bf23466@yandex.ru> References: <83v8rf5894.fsf@gnu.org> <65cb7c73fd4a999cca00@heytings.org> <8c7321f2f3400a5db9be@heytings.org> <8c7321f2f388e5343475@heytings.org> <8c7321f2f36494299e61@heytings.org> <8c7321f2f336523624e3@heytings.org> <83r1202meh.fsf@gnu.org> <6020ffaf-9069-0070-76cf-a13379ef01b5@yandex.ru> <83les71ilg.fsf@gnu.org> <06c5560d-3009-e5a5-3d33-fe5d2ec32d6b@yandex.ru> <74ddc877f17a06d8f120@heytings.org> <100d08b3-c25b-683f-6def-39052107ab59@yandex.ru> <83h72r16g1.fsf@gnu.org> <640c2e07-98e1-96d6-bb02-19f5f03f637f@yandex.ru> <834jyq29o1.fsf@gnu.org> <92da07bd028e3ede61a6@heytings.org> <47894c57-dd8b-5778-240a-3fa6540e4d37@yandex.ru> <92da07bd02c4fc2406af@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: 56682@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 05 15:12:52 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 1oJx8F-0000dL-QX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 15:12:51 +0200 Original-Received: from localhost ([::1]:60794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJx8E-0005iP-Tp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Aug 2022 09:12:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJx7S-0004aL-6B for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 09:12:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJx7R-0007mP-T0 for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 09:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJx7R-0001Lt-Nh for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2022 09:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Aug 2022 13:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.16597050995153 (code B ref 56682); Fri, 05 Aug 2022 13:12:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 5 Aug 2022 13:11:39 +0000 Original-Received: from localhost ([127.0.0.1]:56699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJx74-0001L3-SS for submit@debbugs.gnu.org; Fri, 05 Aug 2022 09:11:39 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:36508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJx72-0001Km-MX for 56682@debbugs.gnu.org; Fri, 05 Aug 2022 09:11:37 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id 186-20020a1c02c3000000b003a34ac64bdfso1691700wmc.1 for <56682@debbugs.gnu.org>; Fri, 05 Aug 2022 06:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=FytbopQ4f0KvXT+5bASptiq+UNDVO8Z7uMsN+Uau7SI=; b=aYba1hV4Q/QbWy0UVeFLdV+igev/CI8oMDaNgDG/5G1uaJCN7Mr9eSjYc5NB/bhR/1 /C0U7HKZ0OLyUuF8nwTWvUxF5lm7q1QATKm69ZGLYA1jc3ywpD9vsJ8y9YMiPahf2ros UgDe3Sl9yL3HnXkJEv5tMZLGSQxYu6qmMhMfmZc08NKAbHxP2NamHROyjtkyqwzB1ElV ZoN/5UhMbtrInFjAN4KJD/8cHnnzhq8h0nTya212p7gIm14LIRcvm19gMhzux18it0gP 5lMb2K6qHW2rJ0nwcPf19XnXS/P0w6MptYeH5s3EfPI67PkbHPii8gx09U4h3H2GFF3D TSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=FytbopQ4f0KvXT+5bASptiq+UNDVO8Z7uMsN+Uau7SI=; b=eAwWPhA+HhpkY4t5BL/IpLqDSh9FMl3iOwwnhjSrZp8AwsEoMuAXDv5pod7wEEBzSF w9TrDDI+idclj/sSTyjZ1UtturopvDl2T2OZoFZEaZ1oZGYGGPmQ3qoCOVcGJPPwhes0 Q9mVXID7aScQyG5DOPiKPPGYcq2OUXSDJdpElfneMUgYfLrq4GGqbYJs7Cv7x1APkoza tYPAsFma/nZhRcoXiujvyUinw6iKWZbBACQEEHJiFgH3l1I5kRRzo+u4ip37XQGeTIik teekMKjUpp7IGn5WG1K7/FcDO124DqVL9jxpkEiHRLVOoFjJG8ne71Y74BkKFpR3kGxp 77dA== X-Gm-Message-State: ACgBeo3HTn6WozPUTBdoBpprp7UAyJksbBVNh7BDLkVrHSkA56MRga40 vct/KrGUAbsQSJ7M8HCu1R0= X-Google-Smtp-Source: AA6agR6ZtfoTZNu84y+U5lHYRlME0OFQRGA9e1l/gcvWMFC9f1mLhRnNyiKiiygQd09Kz9oUjE4xnA== X-Received: by 2002:a05:600c:35d5:b0:3a3:2490:c984 with SMTP id r21-20020a05600c35d500b003a32490c984mr9884400wmq.162.1659705090798; Fri, 05 Aug 2022 06:11:30 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l8-20020a05600c4f0800b003a17ab4e7c8sm10398640wmq.39.2022.08.05.06.11.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Aug 2022 06:11:30 -0700 (PDT) Content-Language: en-US In-Reply-To: <92da07bd02c4fc2406af@heytings.org> 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:238910 Archived-At: On 05.08.2022 16:00, Gregory Heytings wrote: >>> Note that if it were 2/4/8/20 seconds once, and then no further >>> slowdowns while editing the file, that would perhaps be okay.  But >>> that's not the case, you will regularly see a similar 2/4/8/20 >>> seconds delay. >> >> Do our users regularly edit 30MB files? And do a lot of changes in >> them? In different areas? >> > > You seem to think they do not.  Then why is it a problem if such files > are mis-fontified? From experience, I might visit a medium-to-large sized file, and I might search for a particular identifier inside it. Much more rarely, I would apply some edit inside it, in one place, and then save the buffer. On balance, there is more likely more reading than editing involved. That's why I think font-lock should be assigned more importance. In all likelihood, the file I would visit would be even smaller than 30MB, but big enough that the majority of your improvements will be noticeable and welcome there. Just not the part that breaks font-lock.