From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#25122: 24.5; function describe-variable hangs on large variables Date: Sat, 11 Mar 2017 10:33:44 -0500 Message-ID: References: <20161206022112.GF25778@E15-2016.optimum.net> <87twahk19y.fsf@gmail.com> <87d1h4fld5.fsf@users.sourceforge.net> <871sxkyv2m.fsf@gmail.com> <87mvcs8j7w.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489246523 30240 195.159.176.226 (11 Mar 2017 15:35:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Mar 2017 15:35:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25122@debbugs.gnu.org, Boruch Baum , Thierry Volpiatto To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 11 16:35:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmj36-0007F9-Hk for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 16:35:16 +0100 Original-Received: from localhost ([::1]:43792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmj3C-0002LO-E2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 10:35:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmj2y-0002Hq-Gv for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 10:35:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmj2t-0003MT-Lj for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 10:35:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmj2t-0003MF-Hu for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 10:35:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmj2r-0001Ke-N1 for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 10:35:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Mar 2017 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25122-submit@debbugs.gnu.org id=B25122.14892464505041 (code B ref 25122); Sat, 11 Mar 2017 15:35:01 +0000 Original-Received: (at 25122) by debbugs.gnu.org; 11 Mar 2017 15:34:10 +0000 Original-Received: from localhost ([127.0.0.1]:51620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmj22-0001JF-Ih for submit@debbugs.gnu.org; Sat, 11 Mar 2017 10:34:10 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmj21-0001J2-N0 for 25122@debbugs.gnu.org; Sat, 11 Mar 2017 10:34:10 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtBACIGMRY/3OXCkxdGgEBAQECAQEBAQgBAQEBg1FBkAuQXikBlx+GHAQCAoJARBQBAgEBAQEBAQFrKIUWAQQBViMFCws0EhQYDYovCLQfil8BAQEBBgIBJYs9hSCFGQWQWotnlByIYIZikX+BRDYhgQQjFggshzYiii4BAQE X-IPAS-Result: A0CtBACIGMRY/3OXCkxdGgEBAQECAQEBAQgBAQEBg1FBkAuQXikBlx+GHAQCAoJARBQBAgEBAQEBAQFrKIUWAQQBViMFCws0EhQYDYovCLQfil8BAQEBBgIBJYs9hSCFGQWQWotnlByIYIZikX+BRDYhgQQjFggshzYiii4BAQE X-IronPort-AV: E=Sophos;i="5.36,147,1486443600"; d="scan'208";a="295032572" Original-Received: from 76-10-151-115.dsl.teksavvy.com (HELO pastel.home) ([76.10.151.115]) by smtp.teksavvy.com with ESMTP; 11 Mar 2017 10:33:44 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 836056184D; Sat, 11 Mar 2017 10:33:44 -0500 (EST) In-Reply-To: <87mvcs8j7w.fsf@users.sourceforge.net> (npostavs's message of "Sat, 11 Mar 2017 00:40:03 -0500") 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: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130488 Archived-At: > Actually, it's the indent-sexp on the whole object that takes time. > Possibly we could sacrifice some indentation correctness if the printed > representation is big. Actually, I think that trying to optimize this is bound to fail: we want *Help* to show up "instantly", so we're off by a factor of more than 100, which seems way out of reach (unless there's really an algorithmic problem in our code, admittedly). I think the better way out is to do less work. E.g. bound the total amount printed (and replace the rest with "..." that can be expanded on demand). Stefan