From: Lars Ingebrigtsen <larsi@gnus.org>
To: 29463@debbugs.gnu.org
Subject: bug#29463: 27.0.50; Backtraces with large strings is very slow
Date: Mon, 27 Nov 2017 03:53:28 +0100 [thread overview]
Message-ID: <m38tesh1p3.fsf@gnus.org> (raw)
I was trying to debug some code that dealt with very large SVG images,
and getting a backtrace buffer proved impossible -- Emacs would just
hang.
Here's a trivial test case:
(let ((a (make-string 100000000 ?a)))
(debug a))
On my machine, this takes about half a minute to display, but if you
have deeply nested code that the debugger is trying to display, you'll
get that additional time per frame, I think, so it can take arbitrarily
long to render the buffer.
It would be nice if the backtrace buffer would just chop off
ridiculously long strings instead of printing them. Perhaps controlled
by a -print-length variable?
In GNU Emacs 27.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
of 2017-10-26 built on stories
Repository revision: 1ad56d0a6bdd07c722a3c161096a16f70d1cbb35
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9.2 (stretch)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next reply other threads:[~2017-11-27 2:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 2:53 Lars Ingebrigtsen [this message]
2017-11-28 22:33 ` bug#29463: Backtraces with large strings is very slow Kaushal Modi
2017-11-29 1:48 ` Noam Postavsky
2019-09-21 8:20 ` bug#29463: 27.0.50; " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38tesh1p3.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=29463@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.