From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: undo-auto--undoable-change infloop Date: Wed, 27 Jul 2022 19:06:29 +0200 Message-ID: <8735emcwoa.fsf@web.de> References: <87o7xc1qbh.fsf@web.de> <831qu8dqrx.fsf@gnu.org> <87bktbciup.fsf@web.de> <83o7xaby5a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38220"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:n4eBUIJzFIYHRtkweM99MNn5tGI= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 27 19:09:13 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 1oGkX2-0009lH-NR for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 19:09:12 +0200 Original-Received: from localhost ([::1]:43710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGkX0-0007eY-EZ for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 13:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGkUb-0006K2-VT for emacs-devel@gnu.org; Wed, 27 Jul 2022 13:06:41 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:53784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGkUa-00042I-HE for emacs-devel@gnu.org; Wed, 27 Jul 2022 13:06:41 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oGkUW-00061r-96 for emacs-devel@gnu.org; Wed, 27 Jul 2022 19:06:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:292747 Archived-At: Eli Zaretskii writes: > > A CPU profiler report looks like this, with stuff less than 3% removed: > > > > 24220 41% - timer-event-handler > > 21654 37% - timer-activate > > 19231 33% - timer--activate > > 17774 30% timer--time-less-p > > 19949 34% - ... > > 19949 34% Automatic GC > > 14040 24% + command-execute ;; actual command execution time > > [...] [...] > > > > This is a very strange result, not saying anything to me. > > Why does it seem strange to you? That there is no Lisp function there besides the timer stuff. Undo stuff like amalgamating is done in Lisp, so such function(s) should appear there if they do work or initiate it. And 30% time spent in `timer--time-less-p' doesn't look sane. Seems that function is called extremely often. Michael.