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: Sun, 07 Aug 2022 21:59:22 +0300 Message-ID: <83iln3x4l1.fsf@gnu.org> References: <6ae35c9306ade07b4c45@heytings.org> <835yj4xhh7.fsf@gnu.org> <83y1w0w0gk.fsf@gnu.org> <83pmhcvugm.fsf@gnu.org> <651cad2f-3ce3-22dd-0829-38dd3c46ec40@yandex.ru> <83o7wwvsqf.fsf@gnu.org> <87lerzrisg.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4012"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 07 21:01:31 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 1oKlWk-0000vF-Jv for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 21:01:30 +0200 Original-Received: from localhost ([::1]:38628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKlWj-00041H-4F for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 15:01:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKlUw-0003GW-Nv for emacs-devel@gnu.org; Sun, 07 Aug 2022 14:59:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKlUw-0005B5-2u; Sun, 07 Aug 2022 14:59:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QUHLHqQuKum54BWb8kDtKTojYDUj/QHcuhqlXWgDyoc=; b=ARFu4AB/uO9llRk4cS3X N5LJXLT4CmHh5uZPzNaYi9SWsxc7179WdKDUFKS2Q1H1MUyR4LRlQCmE70lXcbf8bmKIOQeUtnVU8 Aao6raMhqIkekRUWwl6k4hkI8blyUrsG3N7lyDMRqsnTsVAsmKbEh+svD33N8bYB+fmOxQJHb0CqA nq8TeWAihImEab/TXWKBtY4p6wnHJMNCwnNv0EZggN3xGuZM6Xn+Q8Kwe6I6lYefvCrY8cde9p3qV DL2EKnleYFhVgJSccpa2lr0Fe/8v8buJMQPTIoeofZ4vlJjjHwso1PyrZzF73oxtRxREVW5U0PvJa XBnJ76mmsKs6NA==; Original-Received: from [87.69.77.57] (port=4436 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 1oKlUv-0006Hw-GP; Sun, 07 Aug 2022 14:59:37 -0400 In-Reply-To: <87lerzrisg.fsf@telefonica.net> (message from =?iso-8859-1?Q?=D3scar?= Fuentes on Sun, 07 Aug 2022 20:49:03 +0200) 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:293229 Archived-At: > From: Óscar Fuentes > Date: Sun, 07 Aug 2022 20:49:03 +0200 > > Eli Zaretskii writes: > > >> > Yes, and that's SLOOOWWWW! > >> > >> It's not slow on files of reasonable size. E.g. even if we take xdisp.c > >> (the file I've seen referred to in complaints on CC Mode's speed), > >> > >> (benchmark 1 '(save-excursion (parse-partial-sexp (point-min) > >> (point-max)))) > >> > >> reports 20-50 ms on my machine. > > > > It takes 0.5 sec here. > > Is that the unoptimized build you usually work with? Yes.