From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Lars Ingebrigtsen <larsi@gnus.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#36566: 27.0.50; debug is sometimes horribly slow
Date: Fri, 13 May 2022 18:01:02 +0200
Message-ID: <87mtfl1kxt.fsf@gnus.org>
References: <87r26yvb4r.fsf@web.de> <871ryy2l1t.fsf@gmail.com>
 <87r26xjyon.fsf@web.de> <877e8llbzo.fsf@runbox.com>
 <8736ilaepu.fsf@runbox.com> <87h871u24i.fsf@gmail.com>
 <874l2vcrtn.fsf@runbox.com> <874l2eosa7.fsf@gmail.com>
 <87mufh8jj2.fsf@runbox.com> <87v9tza6gg.fsf@gmail.com>
 <875zlvj453.fsf@runbox.com> <87bkwp2pjr.fsf@gnus.org>
 <87a6c72v1t.fsf@runbox.com> <87k0bb16jc.fsf@web.de>
 <874k2ed828.fsf@gnus.org> <875ym931t9.fsf@runbox.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="40226"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cc: Michael Heerdegen <michael_heerdegen@web.de>, 36566@debbugs.gnu.org,
 Noam Postavsky <npostavs@gmail.com>, Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Gemini Lasswell <gazally@runbox.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 18:32:30 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1npYDN-000AGS-42
	for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 18:32:29 +0200
Original-Received: from localhost ([::1]:37070 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1npYDL-0003Sv-Ld
	for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 12:32:27 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51186)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1npXk9-0008W8-DM
 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02:17 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:50927)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1npXjt-000337-Vx
 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02:03 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1npXjt-0006Rv-Sz
 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 12:02:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Lars Ingebrigtsen <larsi@gnus.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 13 May 2022 16:02:01 +0000
Resent-Message-ID: <handler.36566.B36566.165245767424661@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 36566
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
Original-Received: via spool by 36566-submit@debbugs.gnu.org id=B36566.165245767424661
 (code B ref 36566); Fri, 13 May 2022 16:02:01 +0000
Original-Received: (at 36566) by debbugs.gnu.org; 13 May 2022 16:01:14 +0000
Original-Received: from localhost ([127.0.0.1]:44808 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1npXj8-0006Ph-AJ
 for submit@debbugs.gnu.org; Fri, 13 May 2022 12:01:14 -0400
Original-Received: from quimby.gnus.org ([95.216.78.240]:39136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@gnus.org>) id 1npXj6-0006PQ-QX
 for 36566@debbugs.gnu.org; Fri, 13 May 2022 12:01:13 -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:In-Reply-To:Date:
 References: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=XobWrd6rHdnJgKomuSZroRz7XRaSPRcgZw9+mYo1SMA=; b=ku03sS6boLJx53Y6/xrN5sters
 e1WjzfgD8g1vJBCNi0NZiVp2YqzOywCV4jqCoGlOGbrHAY/7hMpy8m+vZp1tzZyxmKwU89yQ8xU5k
 Z/xc+ka9DmVUAvNmzRshk8rqUM09qEz7AOuz5wgfKeOVa76kfcmShg1xU65nWe7iUO0E=;
Original-Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@gnus.org>)
 id 1npXiw-0002II-M5; Fri, 13 May 2022 18:01:04 +0200
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUFBAUnHRkyKylR
 RDpGNzGVg25hVEv///945FKsAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YFDQ8eE23gPK4AAAGqSURB
 VDjLjVRNk4IwDG1x9WwqeoZSOCMwnBU7nld39OzCbv//T9ikfFk7O2NmUNqXvCQvLYxxsMYA1swx
 2a/B2SzwSXQDoHTzvB980a84d3UXuzTZgzEMQFBVDrB8TK/cAba5v2dtETHWyFN1OpXaA/P+b7V+
 BQqhVdlVNbzso6Pt3Av438JT3SaFjjzgCLD7jmNlF0rOlI3UaSdhRzuZaUmjAeQglZSS3m4d7Qmv
 p23be2a2t0CKCMulCDM4rK59cr5phSR123Ecd2I8YFV9rfw6AjfiAkyMD06Q78dkvw8n9yx/+kli
 YWY+6TYAF6LSZYVsOPRgAnaXmecDlxOwIirIjKmrCk9SOgNu8vQwVeVOZ3Ucy7tZdZUxplVIFRSj
 x53QvF8sMPo8cC1tUWWhuqpJaqpyEGuX9+OAGECQXNxQCOehP/89gzicFZiFCqPsZ7wQygoCyegQ
 j/5SWiBmb5uI7RH1InhhuaR3ZIJo6NyjSqpSN9oeuMkiv8We/hhaBXygIElrs6evQPGMCHVg/MBt
 q84d3JiccfwsSKm0ccnQjYs1p3v4riB/wnw3K2tbAgAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt
 MDUtMTNUMTU6MzA6MTkrMDA6MDDy2CxQAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTEzVDE1
 OjMwOjE5KzAwOjAwg4WU7AAAAABJRU5ErkJggg==
X-Now-Playing: Colourbox's _Colourbox (PolyGram)_: "Breakdown"
In-Reply-To: <875ym931t9.fsf@runbox.com> (Gemini Lasswell's message of "Thu,
 28 Apr 2022 10:56:26 -0700")
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:232173
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/232173>

Gemini Lasswell <gazally@runbox.com> writes:

> The slowness does come from printing large tree-like structures. Here is
> a small example to reproduce the problem.  Paste the following code into
> *scratch*:
>
> (defun my-make-a-tree (depth)
>   (if (natnump depth)
>       (list (my-make-a-tree (1- depth)) (my-make-a-tree (1- depth)))
>     (list 'leaf)))
>
> (defun my-func ()
>   (let ((tree (my-make-a-tree 13)))
>     tree))
>
> (my-func)
>
> Evaluate the first form using C-M-x and the second using C-u C-M-x.
> Then evaluate the third form with C-M-x.  You will enter Edebug; press
> space to step through.
>
> Result: Each step takes a few seconds and creates a message of about
> 150K characters.

Thanks for the recipe; I can reproduce the issue here, too.  I'm not
quite sure what the correct shortening would be here...  anybody got any
ideas?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no