From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Sun, 24 Jul 2022 18:26:38 +0200 Message-ID: <87zggywk75.fsf@gnus.org> References: <83bktghrn0.fsf@gnu.org> <87v8rnc2wp.fsf@gmail.com> <8335erizqh.fsf@gnu.org> <83r12bhgfo.fsf@gnu.org> <83pmhvhg7g.fsf@gnu.org> <83o7xfhfqw.fsf@gnu.org> <83czdvgfy4.fsf@gnu.org> <83o7xeft1w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, gregory@heytings.org, Stefan Monnier , visuweshm@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 24 18:27:12 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 1oFeRk-0002KZ-MY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 18:27:12 +0200 Original-Received: from localhost ([::1]:56414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFeRj-0006Qq-Nu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 12:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFeRa-0006QO-EV for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 12:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFeRa-0000tA-5i for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 12:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFeRZ-000259-Tl for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 12:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jul 2022 16:27: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.16586800177988 (code B ref 56682); Sun, 24 Jul 2022 16:27:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 24 Jul 2022 16:26:57 +0000 Original-Received: from localhost ([127.0.0.1]:48549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFeRV-00024m-Ac for submit@debbugs.gnu.org; Sun, 24 Jul 2022 12:26:57 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFeRS-00024W-8Q for 56682@debbugs.gnu.org; Sun, 24 Jul 2022 12:26:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/i5L57DAoftyf6qRV7kP3mcxoDTTyhqwtmNaFA+9bZo=; b=WngQA1RjaIdzRO9NfqvV9zbFY1 VLFoXfLeUw39zfaDKEjrBCwzF1DENAdW0eoiLk/8ogdGrG8Eh9r11+3hdSbn6miyHFC9naNQXD7ju kN+bfAAg3Y0A8fDNR6phzWQeXNQAoHyGopT4hEzjgl2zr/IpFlZmooy556Xj5QGKdSb0=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFeRF-0008R0-TL; Sun, 24 Jul 2022 18:26:44 +0200 In-Reply-To: (Stefan Monnier via's message of "Sun, 24 Jul 2022 11:48:35 -0400") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEX87bjo1aXYxZnI tY2mk3K7qIPpkVXKeUVmRzGSdFWbXTZbRjT++cL////zD2oIAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+YHGBAWACv65/gAAAF2SURBVDjLY2AYhoARhziTohJ2CWMBEUxBYaNAlvSKKaiCykGCLkaKIlnp q8sSUCQCZxtvCRKRWtWxYlkaioQAp+AWB89dOzo6lqUJoMiwMG6dMmNXR9eqsrQEHkYlhKSm6pbO aSuqytLS0hJEg42EYeIiJsZbZrRXAYXTVy/wNlVUjjkA8e8kFdUdM9XKl6WVp1c0GDkxuRg6Qmxw cmXZaahSvryrvGr5JkOVyE6XTRAJB09lQ5OQFenbV3UvWzll9s7OnRAJBkdrJVUDZe9ly5evKLPe snvGTJgEY7ezIYMg17ZVqzsStbfMnums2AT1hhPIMtYdqzu6dayVDQUElR2Qo4FFe/aMKQLKCsKq QZ6o3mfZbKRkbKTq6qw8GS1cHJgMGQVVlI1MFJDFeaRlDhgxGis7RTqiBiSPt+PhGGMeZmYFHbSE 4CB4RGAik4HRgQPosXvgiI1KkKgOAyZgdGZUDjyARYKH1SUQe/rhYTjDMAroAQDZz2UAZ0uJ2wAA ACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNy0yNFQxNjoyMjowMCswMDowMAmMry4AAAAldEVYdGRh dGU6bW9kaWZ5ADIwMjItMDctMjRUMTY6MjI6MDArMDA6MDB40ReSAAAAAElFTkSuQmCC X-Now-Playing: Neil Young's _Harvest_: "Harvest" 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:237852 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > `face` may be the one we care about, but there will be others > (especially in the case you were talking about, i.e. the impact of > non-display-related faces) Random thought: Would it make sense to make `put-text-property' (and friends) try to ensure that `face' (and `font-lock-face'?) are towards the start of the plists? That wouldn't help with intervals that don't have a `face' at all, but should speed up the ones that have, and would be relatively low impact. I don't think we guarantee anything about the order, so it might not break anything.