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.devel Subject: Re: How the long-lines "optimisation" breaks font locking. Date: Sat, 06 Aug 2022 08:36:35 +0300 Message-ID: <83czdeyluk.fsf@gnu.org> References: <87y1w5tahv.fsf@gnus.org> <83sfmc2mph.fsf@gnu.org> <837d3n0we0.fsf@gnu.org> <71604574-d7e7-306f-bbc7-b60461737d6e@yandex.ru> <83pmhezs61.fsf@gnu.org> <12edd1f1-e073-689b-cc94-22cabca40352@yandex.ru> <83o7wyzp16.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, larsi@gnus.org, emacs-devel@gnu.org, gregory@heytings.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 06 07:37:25 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oKCV3-0008nk-HD for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 07:37:25 +0200 Original-Received: from localhost ([::1]:57334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKCV1-0000c1-Uz for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 01:37:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKCUI-0008L2-OA for emacs-devel@gnu.org; Sat, 06 Aug 2022 01:36:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKCUH-00040m-Ll; Sat, 06 Aug 2022 01:36:37 -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=YPhtoviY44DT2AZ5LVrywT88NG0U2LRM8uMr/dKIjMM=; b=Fb9HBNO0CMN6 4lIRCf3HLo2ReVbP/xoW/UcNsIsoLqGWdhXBAJOZsprWUGBbKfU/p6FSCCU9PHrawuIcNdOsiRRcF LWYYZxuGQ3UgL1kD0lwVIRKNmmG4cu7/S2KiK16U5QrywEHwaW3vaAVDLV7OsP22nBrVrGfTi0uz1 P/lsdGex3N8A2hmn9tal525wqEKZ/NvljMEQkknCyO0YwnYzFGwblKwI6Pkg79VnjmDb0BydEwhuF zKMzgMButr4N8zJj8ekI1/n4lzCN1TbveiNTEbSOOLuFQ7Grx2EAkXLd+5vYcyr5KG8z8xPz9iA7T QZvqxxpJZXPehZr0m7CTeA==; Original-Received: from [87.69.77.57] (port=3517 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 1oKCUF-0006yt-Qz; Sat, 06 Aug 2022 01:36:36 -0400 In-Reply-To: (message from Dmitry Gutov on Fri, 5 Aug 2022 22:50:07 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293133 Archived-At: > Date: Fri, 5 Aug 2022 22:50:07 +0300 > Cc: acm@muc.de, larsi@gnus.org, emacs-devel@gnu.org, gregory@heytings.org > From: Dmitry Gutov > > On 05.08.2022 18:30, Eli Zaretskii wrote: > >> The slow part I'm referring to is not in font-lock's code, nor in CC > >> Mode's font-lock rules. So it can be "fixed" independently. > > Then where is it? > > Probably somewhere in the recent xdisp.c changes. Very unlikely. The recent changes in xdisp.c could not have possibly slowed down the code there. > Not in 'handle_fontified_prop', though. That still leaves a lot of possibilities, so is not useful for making any progress in this matter.