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: Major modes using `widen' is a good, even essential, programming practice. Date: Mon, 08 Aug 2022 15:40:55 +0300 Message-ID: <83v8r2vrfs.fsf@gnu.org> References: <6ae35c9306ade07b4c45@heytings.org> <83fsi7wjqe.fsf@gnu.org> <838rnzvup5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3081"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, gregory@heytings.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 08 14:44:53 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 1oL27n-0000gW-Uj for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Aug 2022 14:44:52 +0200 Original-Received: from localhost ([::1]:36006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL27m-0001sq-RX for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Aug 2022 08:44:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL24H-0005Z5-OO for emacs-devel@gnu.org; Mon, 08 Aug 2022 08:41:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL24C-0006mE-PQ; Mon, 08 Aug 2022 08:41:12 -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=Z3y8uCS5rtnmbfLIlvYLcbzbPE7WiAs12NByWEnP618=; b=NPuBgkJyvKXX HgllzliflGVqU0+W7ZxnXZBJHCoJ1nOB3Yd3cqQjUDeJUNKEzYslj3U9sUKlv40vU5PkMHqhVdJf5 PWSTEiJZeU58YLI7mNC0dxctZS/OCUuU9AH9H+LZVbt7VosyKAMu2E4B9NvmzjUNwDxSOhCdygD+G 6c+8v+sPWKhSqHCZFEMUSYV5BmBGN/NR1W200A53KqzK6Daa4w81/EmU2GVftHgNcQJ5Wu8glPIlv 41QDjGBeZD+K5AhFe8QIyAnw0IUMQUsymfZXy6l+KzYwVsQ3GrX0MrHNNyZqvG1CDN/6BqtH9xGMv sQyU6KC8JSOzUGD53IrP5Q==; Original-Received: from [87.69.77.57] (port=1611 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 1oL24C-0000op-DO; Mon, 08 Aug 2022 08:41:08 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 08 Aug 2022 08:05:31 -0400) 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:293262 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, gregory@heytings.org, emacs-devel@gnu.org > Date: Mon, 08 Aug 2022 08:05:31 -0400 > > >> For GB-sized buffers, even the fast C code of `syntax-ppss` incurs > >> a significant delay in the "unusual" case, so have various options: > > > > I reported this for a 18MB single-line file, which is way below the GB > > bar. > > On my own builds (which are slow on old machines), 18MB typically > results in a delay of just a few seconds. Optimized build or unoptimized? And is that before or after the syntax-wholeline-max limitation?