From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers Date: Tue, 18 Oct 2022 13:50:02 +0200 Message-ID: <87mt9tbbbp.fsf@gnus.org> References: <877d10r21x.fsf@localhost> <87zgdwyvkt.fsf@gnus.org> <87ilkk6ri5.fsf@localhost> <87v8okjei9.fsf@gnus.org> <87tu44jdce.fsf@localhost> <87czasjd9j.fsf@gnus.org> <87k050nio5.fsf@localhost> <87zgdwhw0z.fsf@gnus.org> <83sfjo3tfw.fsf@gnu.org> <878rlfjmjh.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37135"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58558@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 18 13:51:42 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 1okl8H-0009Qm-5r for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 13:51:41 +0200 Original-Received: from localhost ([::1]:36728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okl8F-0007Ck-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 07:51:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okl7e-0007CE-VM for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 07:51:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okl7e-0002Vh-Iu for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 07:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okl7e-0007sk-A0 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2022 07:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2022 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58558 X-GNU-PR-Package: emacs Original-Received: via spool by 58558-submit@debbugs.gnu.org id=B58558.166609383230259 (code B ref 58558); Tue, 18 Oct 2022 11:51:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 18 Oct 2022 11:50:32 +0000 Original-Received: from localhost ([127.0.0.1]:51388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okl78-0007rx-Qt for submit@debbugs.gnu.org; Tue, 18 Oct 2022 07:50:32 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okl6r-0007r2-B9 for 58558@debbugs.gnu.org; Tue, 18 Oct 2022 07:50:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nrVJ4knk7rQ0dadzw+qvOU8JsDqaNEiraM2Iu44Jyrs=; b=OUGkKY6knNIng5plhr/cB4C+bw fGe5zLB2fLQISqctcbWc3XHF7K7/5jhzwsdh03nI1LI2J6Czzbn5NE07tWdkF1ZZcbijLSTjV4Dlr +W54KSFPrQAZM1zvl2psgSd5H5slo3bggtNIMhhFGQg5n6sI5KT7qbjkBZ8eh/I8+DrI=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okl6g-0002L7-JU; Tue, 18 Oct 2022 13:50:04 +0200 In-Reply-To: <878rlfjmjh.fsf@localhost> (Ihor Radchenko's message of "Mon, 17 Oct 2022 00:56:02 +0000") X-Now-Playing: Bruce's _#savefabric (10) (Mixed by Terry Francis)_: "Cables" 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:245790 Archived-At: Ihor Radchenko writes: > After 11 hours of Emacs uptime and some edits in the buffer (actually, > just a few hours; mostly idle), running the benchmark-progn > repetitively: > > ;; Elapsed time: 8.339753s > ;; Elapsed time: 9.243140s > ;; Elapsed time: 9.868761s > ;; Elapsed time: 10.330362s > ;; Elapsed time: 11.279218s > ;; Elapsed time: 13.581893s > ;; Elapsed time: 13.675609s > ;; Elapsed time: 14.553157s > ;; Elapsed time: 14.651782s > ;; Elapsed time: 17.253983s > > The elapsed time gradually increases. It is definitely a clue, but very > odd one. The slowdowns are so dramatic that they should show up on a profiler -- which might give us a clue which parts of Emacs is slowing down. I briefly tried to use "perf" under Linux to connect to a running Emacs and get some data out of it, but... er... I've never used it before, and... Does anybody have a recipe for how to do runtime function tracing for a running process?