From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams <drew.adams@oracle.com> Newsgroups: gmane.emacs.bugs Subject: bug#36566: 27.0.50; debug is sometimes horribly slow Date: Tue, 9 Jul 2019 20:18:10 -0700 (PDT) Message-ID: <37aa3538-c1be-4503-9785-96d8ebfce3a9@default> References: <87r26yvb4r.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223728"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Gemini Lasswell <gazally@runbox.com> To: Michael Heerdegen <michael_heerdegen@web.de>, 36566@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 05:21:09 2019 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1hl3AL-000w2k-GC for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 05:21:09 +0200 Original-Received: from localhost ([::1]:57716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>) id 1hl3AK-00060P-Ej for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 23:21:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39546) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hl3AF-00060G-4y for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 23:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hl3AE-0001pv-7u for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 23:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hl3AD-0001o7-Vs for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 23:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hl3AD-0002je-QX for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 23:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams <drew.adams@oracle.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2019 03:21:01 +0000 Resent-Message-ID: <handler.36566.B36566.156272882610433@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36566 X-GNU-PR-Package: emacs Original-Received: via spool by 36566-submit@debbugs.gnu.org id=B36566.156272882610433 (code B ref 36566); Wed, 10 Jul 2019 03:21:01 +0000 Original-Received: (at 36566) by debbugs.gnu.org; 10 Jul 2019 03:20:26 +0000 Original-Received: from localhost ([127.0.0.1]:34683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1hl39e-0002iC-4V for submit@debbugs.gnu.org; Tue, 09 Jul 2019 23:20:26 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:48644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@oracle.com>) id 1hl39b-0002hx-JN for 36566@debbugs.gnu.org; Tue, 09 Jul 2019 23:20:24 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6A3IiWr126889; Wed, 10 Jul 2019 03:20:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=yNWhUOH7h+w09FBNIPL79nF8pU+Qgw6rgNRvqcxBSag=; b=WkDClFLcNPcncQXO+tJ3AInQ917OckKIMz1fcLuLgpn3CLwKkkSU12zzs/Fbcblrd4T5 VNmXL6AMQ77ZcJT12fjHlrTyHaXDXxV1tLPcoqMUKnzy2y1CuXODRjFvdfsdOEM152jt zQnqPTwE+f2ZcH1PwKA5SPUm5x2RPa4frCCS/ow9Wkxn0s63OojAsMWjSv6le+rUDq0s Na7Bf1uib9YeU8oIJA0qnRsyjOCc7QWmZJMximofO5vxdRzPaRBgENyZ7TqTy+lp3QsQ 9vl+V7f6Lzr3WP1Ue+chaWva4L/eDjK/q9jLYcMDd8Zk1mYtgiTj92tz91ZJdS3Jhmch AQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2tjk2tqkfe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Jul 2019 03:20:17 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6A3I80w030564; Wed, 10 Jul 2019 03:18:16 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2tmwgx8g72-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Jul 2019 03:18:16 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6A3IBsF010510; Wed, 10 Jul 2019 03:18:11 GMT In-Reply-To: <87r26yvb4r.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9313 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=996 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907100040 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9313 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907100040 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org> Xref: news.gmane.org gmane.emacs.bugs:162593 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/162593> > sometimes it takes 10 or 20 seconds until the debugger pops up. I > debugged code using widgets (who are complicated long lists). But both > the number of frames and the length of the printed lists were not > exorbitant - a quite normal situation. >=20 > When I revert >=20 > e09120d68694272ea5efbe13b16936b4382389d8 > Add backtrace-mode and use it in the debugger, ERT and Edebug >=20 > the debugger becomes fast again and pops up in a reasonable time. With > the commit, the debugger is quite unusable in some cases: stepping > (`debugger-step-through') takes ten seconds per hit etc. Not good. >=20 > FWIW, I think I very much appreciate the cited commit - I didn't yet > make use of the added features but it seems to be cool. I hope we can > find a solution here. At least there should be a way to get a faster > behavior. BTW, I used the profiler and found that most of the time is > spent while garbage collecting. My first thought was that cl-print may > be the culprit but that doesn't seem to be the case. BTW: Is there a way to "turn off" the feature introduced by the commit, even if most people want it on most of the time? (I'm not familiar with the feature, but it sounds like something some users might want to turn off sometimes.)