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: undo-auto--undoable-change infloop Date: Wed, 27 Jul 2022 14:20:01 +0300 Message-ID: <83o7xaby5a.fsf@gnu.org> References: <87o7xc1qbh.fsf@web.de> <831qu8dqrx.fsf@gnu.org> <87bktbciup.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1793"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 27 13:20:52 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 1oGf5w-0000Lv-Lj for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 13:20:52 +0200 Original-Received: from localhost ([::1]:50032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGf5v-0000M4-4G for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 07:20:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGf50-000855-Gv for emacs-devel@gnu.org; Wed, 27 Jul 2022 07:19:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGf50-0005OV-6k; Wed, 27 Jul 2022 07:19:54 -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=FTE5LelC8gFmnx0HpBoBQL2LYBFTe0TxSMB4/T8fW9A=; b=Jo3oFwPMn4my uz40STw3kaSY4n4PO8cgcdddvXhcLxNnEmg8q0LFstZelUGgvmeYypokbRvErE6LFpD622wkngGjj NU8+HTd1NOpYnBO0zVDAb8wKomw4BZzfcuZIQoK+tN8qLomm55kJvz9buC1Zc8oKDCfKatEAEcb7v mnLOJlBVNJqsAYtBPu9T87OsRBSGrqiG6gP3awKlXY9ny8aG2UcNqd4KV+Mm3MwKwW92cxs9iyMHm LyroE2QqRo/0GfFXF5C9MoHCxGr1BAe6P3eVzKEynTAHSr1Py+Aan2WnMkIN/6NIQRK3kYub46tCL ifsKdKd/iXcYVy0rYmJqrQ==; Original-Received: from [87.69.77.57] (port=2196 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 1oGf4z-0002mq-L4; Wed, 27 Jul 2022 07:19:53 -0400 In-Reply-To: <87bktbciup.fsf@web.de> (message from Michael Heerdegen on Wed, 27 Jul 2022 05:52:46 +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:292738 Archived-At: > From: Michael Heerdegen > Cc: emacs-devel@gnu.org > Date: Wed, 27 Jul 2022 05:52:46 +0200 > > Eli Zaretskii writes: > > > I don't know what happened, but undo-auto--boundary-timer is invoked > > 10 sec after the timer is set. Perhaps this kind of problem can > > happen when there are many undoable changes, and processing them takes > > more than 10 sec? > > Maybe what I saw is only an artifact from debugging and tracing (which > also inserts into buffers...) > > I'm totally unsure what is going on. Is there anything I could try to > turn off? > > 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?