From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#36566: 27.0.50; debug is sometimes horribly slow Date: Thu, 28 Apr 2022 10:56:26 -0700 Message-ID: <875ym931t9.fsf@runbox.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16692"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 27.2 Cc: Michael Heerdegen , Gemini Lasswell , 36566@debbugs.gnu.org, Noam Postavsky , Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 17:18:07 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 1npX3O-00045Y-KI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 17:18:06 +0200 Original-Received: from localhost ([::1]:43578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npX3N-0008CR-In for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 11:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npWxW-0005gm-2B for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npWxV-0002zu-PW for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npWxV-00005x-Kn for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2022 15:12:01 +0000 Resent-Message-ID: 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.1652454691305 (code B ref 36566); Fri, 13 May 2022 15:12:01 +0000 Original-Received: (at 36566) by debbugs.gnu.org; 13 May 2022 15:11:31 +0000 Original-Received: from localhost ([127.0.0.1]:44578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npWx0-00004q-PT for submit@debbugs.gnu.org; Fri, 13 May 2022 11:11:31 -0400 Original-Received: from mailtransmit04.runbox.com ([185.226.149.37]:44832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npWwy-0008WD-0P for 36566@debbugs.gnu.org; Fri, 13 May 2022 11:11:29 -0400 Original-Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1npWwq-001AES-Rg; Fri, 13 May 2022 17:11:20 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Type:MIME-Version:Message-ID:In-reply-to:Date:Subject :Cc:To:From:References; bh=MPdjE+pJUyKVvqGWMyp62T0ekSl3ypfpgFgNrPiq5MA=; b=rH tOf9hGbH4USuJflqYxn7LDmRXJqWwrwPZEtlxINwnhs1IDlBVvFWjr48bn3SiL7613QsPJZRx8TSJ 59Zb3/NOMwbili4G4VYq0ua4Ntt0RvFX4T52XczojRVSesbkHj6Iz/cTEOb2IHBbklycGnfOOXZXs v1huxcKD/fnecyW+0h+5thbeIXNgtpfz6vXEb9wS8zUzSC2P3rXyHeEwQMoOE7qtgGJLaNsQCg0f7 kO/wrxRNC3iLuSXllpSK9Y28cZUZG/B2JBeKG3jq2Lzwig9Dv4uHFzNzicIsMoxRvFsOJgzXXjRSp vSezPzHJ/gQLe/XmK4EXbweMR/DqcC3g==; Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1npWwp-0001f1-E6; Fri, 13 May 2022 17:11:19 +0200 Original-Received: by submission01.runbox with esmtpsa [Authenticated ID (696087)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1npWwn-0004OU-W2; Fri, 13 May 2022 17:11:18 +0200 In-reply-to: <874k2ed828.fsf@gnus.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:232161 Archived-At: Lars Ingebrigtsen writes: > A case to reproduce the problem that doesn't require org files would be > nice. `data' in the example here is a parse tree, so perhaps the > slowness is in printing tree-like structures? (But I haven't actually > tried to debug this.) 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.