From unknown Sun Aug 10 16:47:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#29463 <29463@debbugs.gnu.org> To: bug#29463 <29463@debbugs.gnu.org> Subject: Status: 27.0.50; Backtraces with large strings is very slow Reply-To: bug#29463 <29463@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:47:37 +0000 retitle 29463 27.0.50; Backtraces with large strings is very slow reassign 29463 emacs submitter 29463 Lars Ingebrigtsen severity 29463 normal tag 29463 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 26 21:53:54 2017 Received: (at submit) by debbugs.gnu.org; 27 Nov 2017 02:53:54 +0000 Received: from localhost ([127.0.0.1]:59859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ9YP-00018v-Tb for submit@debbugs.gnu.org; Sun, 26 Nov 2017 21:53:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJ9YN-00018i-R9 for submit@debbugs.gnu.org; Sun, 26 Nov 2017 21:53:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJ9YH-0008Mh-Ul for submit@debbugs.gnu.org; Sun, 26 Nov 2017 21:53:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJ9YH-0008Mb-Rc for submit@debbugs.gnu.org; Sun, 26 Nov 2017 21:53:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJ9YG-0003O8-L4 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 21:53:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJ9YD-0008Lp-Iw for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 21:53:44 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:39930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJ9YD-0008IN-BT for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 21:53:41 -0500 Received: from cm-84.215.25.180.getinternet.no ([84.215.25.180] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJ9Y0-0007Te-Ab for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 03:53:30 +0100 From: Lars Ingebrigtsen To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Backtraces with large strings is very slow Date: Mon, 27 Nov 2017 03:53:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 28 17:33:24 2017 Received: (at 29463) by debbugs.gnu.org; 28 Nov 2017 22:33:24 +0000 Received: from localhost ([127.0.0.1]:35250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJoRQ-00073z-Fw for submit@debbugs.gnu.org; Tue, 28 Nov 2017 17:33:24 -0500 Received: from mail-yw0-f171.google.com ([209.85.161.171]:45364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJoRP-00073m-If for 29463@debbugs.gnu.org; Tue, 28 Nov 2017 17:33:23 -0500 Received: by mail-yw0-f171.google.com with SMTP id y187so608991ywd.12 for <29463@debbugs.gnu.org>; Tue, 28 Nov 2017 14:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3/SxNfrKUiYcLLjWvFo60QrpolD1BYrW7ImmxYLdFQQ=; b=fCsxj+qKWfzBuhBSrjM+yLJ5i95P6pfVs2VEF8qtAbOZDiDy2A2OHYUcplNXl8wy6V kmBA9lxVBQCI8GVMPfcYGN0MowTTThgx0MTxctWdC8owGEqSOZXXraBzk6sXzsqvMUlA yinbRyloUW+g7dNkABqBCz8i+oCXsEg6P9T5sSZfar/OtQLdwjS0h+xF8QlauzaJUdpy SVDyXkNPMdg7SCG8xbXKXzi2YbrOjHjEUnN6Xw13oTzW3IgPV5SH/FfoczZ28wfM2wEG /MlCiXOu/Oz+tGLCRSy0JQ8pZGtI8ZHGh/Wv15KWRNf/9IXYk4JH16cWHAhCQcF6Meob ah4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3/SxNfrKUiYcLLjWvFo60QrpolD1BYrW7ImmxYLdFQQ=; b=oOjg+/nr7xR0UwpTeGu9jueN3JRmT3sl2o3Uw6yzBJWvoiBMYwljEMaqgF/Pn5rylu V1dc4cbew8LdNq2WxxhxJ6HC+Zdt7sPrmE6cdvNI8MWehG/CYaYh4LG5zPlyK94dmUac dzC82aJ609B+V9iWCrJu7xhTs9dQJBk5wyr7c7oJKHq1oNY7m8E7IvbphFjWzjmiQWs6 dEveEx46aBiO0bOUy+udRONDJfBKKYUHAOTSoC94gKjB99ZpwBOwOUhEDTVv1eCVQOVQ pkczy/xOmUyE2ekZknOu0sn4dvIhM7iB074hT9daSKNuLA0OGws4uIrYiHjovsSgRLvW Vm+g== X-Gm-Message-State: AJaThX5GCmsDYB1RRwaa67V9u3l7XVLqkc5JV23EppnswbvWrpAb0LJa DVTrfbeTmRGH9D89VvkJ8JUaXVtxHbO0M+7GoN0= X-Google-Smtp-Source: AGs4zMY/1MWqrrS+WXOvTJUTDSZgux6uhy3/QUoYW0trkip0U2LT+qR40WyrXZIMgnoHnQLz3gy1IEqWaABtZtMvcnA= X-Received: by 10.129.6.215 with SMTP id 206mr468447ywg.353.1511908397609; Tue, 28 Nov 2017 14:33:17 -0800 (PST) MIME-Version: 1.0 From: Kaushal Modi Date: Tue, 28 Nov 2017 22:33:07 +0000 Message-ID: Subject: Backtraces with large strings is very slow To: 29463@debbugs.gnu.org Content-Type: multipart/alternative; boundary="001a1142e206f8fab8055f129a0e" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 29463 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --001a1142e206f8fab8055f129a0e Content-Type: text/plain; charset="UTF-8" > 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. +1. Though I see that slow-down on backtrace on emacs-26 branch too.. especially when edebugging/debugging through code in an Org exporter. Org exporters use an INFO plist that contains loads of information for the whole Org buffer (which is common to be 1000's of lines). So each time the edebug step comes to the info variable, it could few minutes for emacs before I can move on to the next edebug step. -- Kaushal Modi --001a1142e206f8fab8055f129a0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I was trying to debug some code that d= ealt with very large SVG images,
and getting a backtrace buffer proved i= mpossible -- Emacs would just
hang.

+1. Though I see that s= low-down on backtrace on emacs-26 branch too.. especially when edebugging/d= ebugging through code in an Org exporter.

Org exporters use an= INFO plist that contains loads of information for the whole Org buffer (wh= ich is common to be 1000's of lines). So each time the edebug step come= s to the info variable, it could few minutes for emacs before I can move on= to the next edebug step.
--

Kaushal Modi

--001a1142e206f8fab8055f129a0e-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 28 20:48:26 2017 Received: (at 29463) by debbugs.gnu.org; 29 Nov 2017 01:48:27 +0000 Received: from localhost ([127.0.0.1]:35382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJrUA-0003Hx-Ia for submit@debbugs.gnu.org; Tue, 28 Nov 2017 20:48:26 -0500 Received: from mail-io0-f180.google.com ([209.85.223.180]:35501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJrU8-0003He-Mr; Tue, 28 Nov 2017 20:48:24 -0500 Received: by mail-io0-f180.google.com with SMTP id q15so2062898ioh.2; Tue, 28 Nov 2017 17:48:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gs7dXGFucfXWwYo3AIJlV2e1vHeuQrzgvzQACdhpq80=; b=Do6w32krKIniqaDNUmTf5/UFEyw+glkwWuaT69J2oSnN5FR0trNYjwSQ8ouxN/plo8 /hozgp+Hh7DULo1Dw8ZJ7b39BFA7WZG9dpShBcLJm5YL6Bj4jfeVhPqO9rJspi/hdAF9 Vrnyzh4khiuksG/2jE24Iu1U96zp9a2YUkYOUYGvYvbBi9dJpzBw0uEHJnAIFjclGIoo 50RcPvQfeSyvrLNkbMggtXv5B3RyCPII64jKSM3+vzC99syYZwNytvcJ4AfIVeth7IE4 YlVt31sV8mBZ5XDRhd1wuFpeunHgKe3Rv1jkPoWHFINdRd2FXD1s19g+tk+YmtSt6awI 7h9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=gs7dXGFucfXWwYo3AIJlV2e1vHeuQrzgvzQACdhpq80=; b=ploXh43JBloGs3iuGR5GGKIZBvz1xbGEyOuNBRRJ6A9lqJPzvpAY+t1GbWC0Kvw+x9 4XtV2qofd+cEhfuT1Kap9Tt1RVee90WIXDSwZTkWZi+ypTNfb9ikf89hWZN5nEUUZSV8 npAlm0+kfIPVQD22CYGNBfOv3WYImFzg/NpXs41gvv0TlbncRTWIwqI3mu7md0GQsRNm grCHzCpioF08OU1tgWyH5sc7MkaO0/+4cvpDE7xGueCmItwYzs/Bo9dNDmn9anirZjUV nUfyjcnKsr6fyXw/wNomKOwRT2AHrQV07g4NDOv7kZyd5Ydq321CdqC9n1tlSwZXxSyV 4Jiw== X-Gm-Message-State: AJaThX53VzfWpdtQxKWWgR8ZaacNgDgP6+gkEEbkQLCeI2NIy18MB/3e fk5Rq3hd+SfxaNIe9wAXxj17oQ== X-Google-Smtp-Source: AGs4zMbWVBQrdOAIQ6eDEENAHAVDadzCMlwwdSI7aF51ifj/zhID675c0yPGHIrqY85bkNeB2C6tLg== X-Received: by 10.107.101.11 with SMTP id z11mr1647876iob.66.1511920098877; Tue, 28 Nov 2017 17:48:18 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e68sm12660058ite.0.2017.11.28.17.48.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Nov 2017 17:48:18 -0800 (PST) From: Noam Postavsky To: Kaushal Modi Subject: Re: bug#29463: Backtraces with large strings is very slow References: Date: Tue, 28 Nov 2017 20:48:16 -0500 In-Reply-To: (Kaushal Modi's message of "Tue, 28 Nov 2017 22:33:07 +0000") Message-ID: <877eu9n9cv.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 29463 Cc: 29463@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) merge 29463 18558 quit Kaushal Modi writes: >> 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. > > +1. Though I see that slow-down on backtrace on emacs-26 branch too.. > especially when edebugging/debugging through code in an Org exporter. It's been reported as far back as 24.4. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 04:20:48 2019 Received: (at 29463) by debbugs.gnu.org; 21 Sep 2019 08:20:48 +0000 Received: from localhost ([127.0.0.1]:59047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBadL-0007cU-NY for submit@debbugs.gnu.org; Sat, 21 Sep 2019 04:20:48 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBadK-0007cM-DY for 29463@debbugs.gnu.org; Sat, 21 Sep 2019 04:20:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBadF-00082y-Sc for 29463@debbugs.gnu.org; Sat, 21 Sep 2019 10:20:45 +0200 From: Lars Ingebrigtsen To: 29463@debbugs.gnu.org Subject: Re: bug#29463: 27.0.50; Backtraces with large strings is very slow References: Date: Sat, 21 Sep 2019 10:20:41 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 27 Nov 2017 03:53:28 +0100") Message-ID: <87ftkq12na.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > 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 (ma [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29463 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > 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. This has been fixed in Emacs 27 by shortening the display of the strings, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 04:20:55 2019 Received: (at control) by debbugs.gnu.org; 21 Sep 2019 08:20:55 +0000 Received: from localhost ([127.0.0.1]:59050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBadT-0007cp-2t for submit@debbugs.gnu.org; Sat, 21 Sep 2019 04:20:55 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBadR-0007ch-Er for control@debbugs.gnu.org; Sat, 21 Sep 2019 04:20:53 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBadO-000839-R0 for control@debbugs.gnu.org; Sat, 21 Sep 2019 10:20:52 +0200 Date: Sat, 21 Sep 2019 10:20:50 +0200 Message-Id: <87ef0a12n1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #29463 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 29463 fixed close 29463 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 29463 fixed close 29463 27.1 quit From unknown Sun Aug 10 16:47:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 Oct 2019 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator