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: New optimisations for long raw strings in C++ Mode. Date: Thu, 11 Aug 2022 19:04:07 +0300 Message-ID: <83edxmpy14.fsf@gnu.org> References: <87fsi5xw9l.fsf@gnus.org> <83wnbhtlzb.fsf@gnu.org> <703c2351d96919276449@heytings.org> <83o7wsqlcm.fsf@gnu.org> <83edxoqcnl.fsf@gnu.org> <83a68cqbm0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, gregory@heytings.org, larsi@gnus.org, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 11 18:08:34 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 1oMAja-0002oK-6n for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Aug 2022 18:08:34 +0200 Original-Received: from localhost ([::1]:42930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMAjZ-00030d-8Q for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Aug 2022 12:08:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAfP-0007kc-Mk for emacs-devel@gnu.org; Thu, 11 Aug 2022 12:04:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAfN-0006Le-C9; Thu, 11 Aug 2022 12:04:14 -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=NNzKrnW8az8GRaMTwiZ8Ijae+0oFqKt9TttV20MkLcA=; b=nXl5809eDnmw npKQur2tanre/+KoyZsdNYPbWO0Bc4cZVIOJRIx976wi0rcS4eCxwjnGU1O2aYtd+pXkZ0PWPsg5W 5WusX38WQBiB3zSO13FpH0iLugieYpK03sVB3ZO2svx84vje6vnSbtySktU0fSo7RropXPA8FA8ab x3g5Jpzp6N46jWd4Ib6dYKw5z7BAs9PYCfBRK5jdRIeE9kFwbZ72RyswInbiamVpVTrJNtTk0ogwS nC4FqKLBrA+eEutrRWIjVPJ/q6oFBQ6xFYkfAOZ7+CzTb4CDJVkOJyIrxaY0HEvt4G7LjuYBaeqQG uXXbw8Qptk1N03SSitXaFA==; Original-Received: from [87.69.77.57] (port=1467 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 1oMAfM-0000dk-QF; Thu, 11 Aug 2022 12:04:13 -0400 In-Reply-To: (message from Yuri Khan on Thu, 11 Aug 2022 22:47:34 +0700) 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:293376 Archived-At: > From: Yuri Khan > Date: Thu, 11 Aug 2022 22:47:34 +0700 > Cc: Eli Zaretskii , gregory@heytings.org, larsi@gnus.org, emacs-devel@gnu.org > > On Thu, 11 Aug 2022 at 00:36, Alan Mackenzie wrote: > > > If you open a file in its middle (e.g., by desktop), and there's an open > > block comment there, you've got to look arbitrarily far back to detect > > that state. In practice parse-partial-sexp from point-min will be used, > > likely with cacheing of whatever sort. > > Does fontification need to be synchronous? I.e. you open a file in its > middle, do you expect it fontified exactly and immediately on first > render? > > Some well-known IDEs[^*] make do with first rendering an inexact > approximation of syntax highlighting. Then, as the user starts working > with the buffer, they may have a few thousand idle milliseconds in > which to improve the approximation. That's what jit-lock-defer-time is about, I believe (although our "inexact approximation" is no fontifications at all).