From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#36566: 27.0.50; debug is sometimes horribly slow Date: Sun, 15 May 2022 21:44:47 -0400 Message-ID: References: <87r26yvb4r.fsf@web.de> <875zlvj453.fsf@runbox.com> <87bkwp2pjr.fsf@gnus.org> <87a6c72v1t.fsf@runbox.com> <87k0bb16jc.fsf@web.de> <874k2ed828.fsf@gnus.org> <875ym931t9.fsf@runbox.com> <87mtfl1kxt.fsf@gnus.org> <87h75s3gx8.fsf@web.de> <87pmkgl52s.fsf@gnus.org> <87lev4jeyq.fsf@gnus.org> <87czggjdeo.fsf@gnus.org> <878rr4jbr3.fsf@gnus.org> <87r14vhtju.fsf@gnus.org> <87pmkehifs.fsf@gnus.org> <87h75qguki.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23778"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , Gemini Lasswell , 36566@debbugs.gnu.org, Noam Postavsky To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 16 03:45:12 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 1nqPnM-0005yI-5I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 May 2022 03:45:12 +0200 Original-Received: from localhost ([::1]:43588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqPnK-0003Sr-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 May 2022 21:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqPnC-0003SU-OD for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 21:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqPnC-0001KH-E8 for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 21:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqPnC-0004jy-Bk for bug-gnu-emacs@gnu.org; Sun, 15 May 2022 21:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2022 01:45:02 +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.165266549918199 (code B ref 36566); Mon, 16 May 2022 01:45:02 +0000 Original-Received: (at 36566) by debbugs.gnu.org; 16 May 2022 01:44:59 +0000 Original-Received: from localhost ([127.0.0.1]:51118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqPn8-0004jS-NM for submit@debbugs.gnu.org; Sun, 15 May 2022 21:44:58 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqPn6-0004jG-ON for 36566@debbugs.gnu.org; Sun, 15 May 2022 21:44:57 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B1C2380722; Sun, 15 May 2022 21:44:50 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 18BF580543; Sun, 15 May 2022 21:44:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652665489; bh=1/kkBGJ/kGa1QGw4W/yjhCwFUrVijnzMklX/sAAcgqo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IbIYVTQ0pCCoq78syV3bWzcvKc5qLV7OqC5Vuc1IKBNwXDmldG94p7PHqmaFp7nKA gj4e08K0A/K92+71v0FXr1o7JJ1qf18w5Bn1B30JFT2jmJSNAd49ZIZ2aA107KhZHH b4HFRS9i1OJl1Q54ZCifActkRNZFsvddz6TK3/3fOczudGSh7N+zmTvWFjhBp7M+xp 68WgLMdhp9syzh/2seaZ9WlHej9ZmW0lS9f1heTOCyJhOPkaYgUpvkwfiz4L4+HI5z LncCHfYR5xT059fekYqKzyoPqw0hpVfB14/FXTdxpJDFBLSfmqqhL1TD9jBJf9edce ESRC2rStVRBFA== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D16EF12066D; Sun, 15 May 2022 21:44:48 -0400 (EDT) In-Reply-To: <87h75qguki.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 May 2022 03:00:45 +0200") 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:232349 Archived-At: Lars Ingebrigtsen [2022-05-16 03:00:45] wrote: > Stefan Monnier writes: >> Maybe it would. I tend to think we should focus the C code on printing >> data quickly and in a `read`able way (i.e. in sync with `lread.c`) and >> benefit from the comfort of ELisp for the implementation of the >> human-readable version of the printout where performance is not as >> important because we will truncate long outputs anyway. > Well, OK... but why does edebug use cl-prin1 then when stepping through > code? Because what is printed is intended to be read by a human rather than by `read`. > Stepping through code should be fast, and we don't really care > that much about the prettiness of the values were displaying then. I think we do care to see closures printed in a human-understandable way, for example. And with a `char-length` constraint the output should always be fast. Stefan