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: Sun, 24 Jul 2022 17:35:19 +0300 Message-ID: <49df74e5-e16a-a532-98d1-66c6ff1eb6c6@yandex.ru> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> <83wnc3hkdg.fsf@gnu.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="4801"; 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, gregory@heytings.org, monnier@iro.umontreal.ca To: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 24 16:36:10 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 1oFciI-00010H-6k for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 16:36:10 +0200 Original-Received: from localhost ([::1]:44352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFciG-00050Q-IC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 10:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFciA-0004zy-Cq for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFciA-0002DJ-3W for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFci9-0007N5-VT for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 10:36: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: Sun, 24 Jul 2022 14:36: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.165867333328287 (code B ref 56682); Sun, 24 Jul 2022 14:36:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 24 Jul 2022 14:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:48438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFchg-0007MA-N6 for submit@debbugs.gnu.org; Sun, 24 Jul 2022 10:35:32 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:41838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFchc-0007Lw-V3 for 56682@debbugs.gnu.org; Sun, 24 Jul 2022 10:35:31 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id q18so2147128wrx.8 for <56682@debbugs.gnu.org>; Sun, 24 Jul 2022 07:35:28 -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=0qQXeLahymF66iAZEHSSbz+5THWd0vYeX1nRdh+8X40=; b=hswjcI3u16H/QNV8dZ5mg48oIWmUiZuULXlqDkK5yX5SXHzcfpzGRzOQ/oGL946IN5 US/AUz1BsoU9HSaFsjhDXpRvlweFl0RyU8jr8J0AYRs2XYaTRwcOklKGGb/wEvekzj4W 8q5TBUmzBZftBXjBM6Pm9BDYXNcTkBwVUu1HaQrz/sKduGgwBHDZ1f0w6MIlWLISMxkq RH9gzcuZJ97bEU0rmiK3YsEJYEqy1Rp/kqFaNDkt5Qm+fdNhc0tGpE6cbiKj4ETnOfBe KJt/xSJpYyPQkMC2gOV0Q7VEx/9mLBPH3i3H2aSW9mmm8MC3U0n/zfXHBkvWhmKh51KM 9VxA== 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=0qQXeLahymF66iAZEHSSbz+5THWd0vYeX1nRdh+8X40=; b=tf7JzINrXNDqSFOB5ZxiGX0FaRLzZTM1y2kaFnYnMY3qhWlfrawfJtdEkY8uuEtQVj HaHERiVin0gGL4+qoYbYP4VlO3dYmqQ9aXTEGPSqpdYcameP/Mq04ceWzxJ27bfjLJDX VHvpuievGg/AgdaTBkxk1sJP1rcDckY3H08bogz3Yx9MuZV2vQBR7/QVUpqQ3DDwvVcB TXkGqyTkPQTcwdmuZuOOuifGNXWDwTK3RS4GZsYAuYvzOZmWbJ2UFXyy4Wc4w+fhwEum RagcojM34aKvDwMLtofVHeAKvHemNLR/rLOSl5r1Aiz+YIPXNpngsD7F2MicEVJZRUaw c6bw== X-Gm-Message-State: AJIora9leZAEKsJw7z7unhKlZHceMUaOQpR1OPhGKJdAzJqN8G8fkgy8 btw04BOiHQHepbRl35+o0Xg= X-Google-Smtp-Source: AGRyM1vR8EF9EdaEjROnMol4vG86SrBgiNbw2QikobmCXZiVKAQPWCsXWEYh5PpNg7rMRFfH/yXhFA== X-Received: by 2002:adf:f90d:0:b0:20c:de32:4d35 with SMTP id b13-20020adff90d000000b0020cde324d35mr5198640wrr.583.1658673322886; Sun, 24 Jul 2022 07:35:22 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k66-20020a1ca145000000b003a2fdde48d1sm11164838wme.25.2022.07.24.07.35.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Jul 2022 07:35:22 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:237840 Archived-At: On 24.07.2022 08:50, Gerd Möllmann wrote: > Eli Zaretskii writes: > >>> My bet is indeed on the mere presence of text properties, plus the >>> fact that we need to merge faces. But I could well be wrong. > Can't say something about face merging, but "frequent" changes of faces > certainly have an effect on iterator performance. It stops, looks up > properties again to determine the next stop pos, does what has to be > done for current properties... But the problem is contingent on having long lines, isn't it? There must be some interplay between those circumstances. Not just having to look up faces (relatively) a lot.