From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#57245: 29.0.50; M-> in a large XML file (without long lines) is slow Date: Wed, 17 Aug 2022 14:46:46 +0300 Message-ID: References: <18035574-1b50-62f4-7605-8cdb33204535@yandex.ru> <83tu6cdt7l.fsf@gnu.org> <913e0b46-7145-d39d-1fcd-bc17094e28f2@yandex.ru> <6688b0ad-54e1-4a59-e9b6-4cdc803a8359@yandex.ru> <4e2838b5-109e-7a27-0230-29dc6624b751@yandex.ru> <83bksjdru1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18010"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: 57245@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 17 13:48:21 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 1oOHX1-0004WZ-FC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Aug 2022 13:48:19 +0200 Original-Received: from localhost ([::1]:46766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOHX0-0002wQ-E0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Aug 2022 07:48:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOHVn-0002u4-10 for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 07:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOHVm-0001HS-OY for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOHVm-0007bH-KO for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2022 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2022 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57245 X-GNU-PR-Package: emacs Original-Received: via spool by 57245-submit@debbugs.gnu.org id=B57245.166073681929207 (code B ref 57245); Wed, 17 Aug 2022 11:47:02 +0000 Original-Received: (at 57245) by debbugs.gnu.org; 17 Aug 2022 11:46:59 +0000 Original-Received: from localhost ([127.0.0.1]:49660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOHVj-0007b0-Fm for submit@debbugs.gnu.org; Wed, 17 Aug 2022 07:46:59 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:38869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOHVf-0007al-NW for 57245@debbugs.gnu.org; Wed, 17 Aug 2022 07:46:57 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id ba1so5329074wrb.5 for <57245@debbugs.gnu.org>; Wed, 17 Aug 2022 04:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=GVoOpPuqgX5sOJw2MwfTDlD7gIsy+t46BlKPsqrkmzg=; b=Qkog7SWqyIPmAH8ynhRSBD375p5FCgtJx81HDkJr342ktlap5sRsXiM3zW96sXTtbQ upY92g1bS2KuNkc/i74qdSPO62FyZxdYCkGVwHHrcEHXXqPo1JUoarRefq3cFqncJZ2W x9E/xVonPc75+LmvJ4vB35Rg0AeFwV4IJoPYm4cjfLESEWtkI2L7LktrEJG3/MR9Jkr7 tsRnh73ZMOfWT6tyTkgleKTY9/E6vrlb05+BJAcWHM41Hk0wL7ekA6TB9QydZrsp8ecj 0wm2OPeW8rUmLjX38pLU1CK8gSASZ8/0snGijzatDkqNK1cbectATU3fgv3Mb2Q6Fw0E SyyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=GVoOpPuqgX5sOJw2MwfTDlD7gIsy+t46BlKPsqrkmzg=; b=eX8ZTODi2n0AfvOL2Q9TLb5ohrbOp+z4rtsi3S0YzRH2DNvblKjy/AmO9zQeWocY9Y 08Gib5x5XkzsJJLLYZFAPLYiByAIrNNMv+GIlhDVWl6OU2RKfI5O8WGL66D6oCffrM4r lG+bzBOtTvooOd1mw5O3/yafXEuXRJW6nHA57Nxm5pXxs5tihDZEx6PnKN9jaDv7r+xN JXMwdIa4eZfBgsB1+Ux2dnTG0NmcDFRnLESYOenZiXCAg0FDROKfXiB+CQ9P065yW/Gb Sxoupo+n3QkVB9vPKgHg5XVmx57hbfDjoovp2CMux2oeJpCKWZtR5kjQRZ75AgTRucUI BC3A== X-Gm-Message-State: ACgBeo0gFp2PX1HP6ZuDS7McsRzmk5h+rSBmWDOrYyGhiALbz7QGgQEi K2z5bLFyFvv5HCJ8ya85b1g= X-Google-Smtp-Source: AA6agR5atWwg0Oucayi4u20XAim2O5Gu9Q/Te+wtQZFwHOrtKZRA5qzZrJEt6t+HB7AYrfiQAjW35g== X-Received: by 2002:a5d:5281:0:b0:224:fe40:798f with SMTP id c1-20020a5d5281000000b00224fe40798fmr9305896wrv.90.1660736809794; Wed, 17 Aug 2022 04:46:49 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f14-20020a05600c154e00b003a32251c3f9sm2412660wmg.5.2022.08.17.04.46.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Aug 2022 04:46:48 -0700 (PDT) Content-Language: en-US In-Reply-To: <83bksjdru1.fsf@gnu.org> 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:240057 Archived-At: On 17.08.2022 14:36, Eli Zaretskii wrote: >> Date: Wed, 17 Aug 2022 01:20:38 +0300 >> Cc: Eli Zaretskii , 57245@debbugs.gnu.org >> From: Dmitry Gutov >> >> Otherwise, syntax-wholeline-max seems to be doing its job fine: if I >> comment out the narrowing code in handle_fontified_prop (or switch to >> the branch I posted previously), two XML files -- one with long lines >> and one without (the files differ only by addition of newlines) -- show >> approximately the same delay on M->. > > Doesn't syntax-wholeline-max only affect long lines? Because I don't > think I see its effect in the XML file where lines were broken by > newlines, and then the file was duplicated 100 times. Its purpose is to handle the slowdown which occurred specifically on long lines because of font-lock-extend-region-functions/syntax-propertize-extend-region-functions. Now that it works -- I don't see any particular slowdowns on long lines, even with narrowing disabled. And the performance of M-> depends solely on the size of a file. In my XML test files, at least.