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#25295: Represent eieio objects using object-print in backtraces and edebug Date: Wed, 22 Feb 2017 14:08:28 -0500 Message-ID: References: <87pokampa4.fsf@ericabrahamsen.net> <8760m2mmlq.fsf@ericabrahamsen.net> <87lguq5r87.fsf@ericabrahamsen.net> <878tp0i74g.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487790559 15041 195.159.176.226 (22 Feb 2017 19:09:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2017 19:09:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: eric@ericabrahamsen.net, 25295@debbugs.gnu.org, npostavs@users.sourceforge.net To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 20:09:12 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 1cgcHh-0002ij-Jy for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 20:09:05 +0100 Original-Received: from localhost ([::1]:54831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgcHn-0003DF-H5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 14:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgcHh-0003CF-8f for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgcHe-0007LT-50 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:09:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgcHe-0007LM-0x for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgcHd-0006Wa-S1 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2017 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25295 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25295-submit@debbugs.gnu.org id=B25295.148779051225022 (code B ref 25295); Wed, 22 Feb 2017 19:09:01 +0000 Original-Received: (at 25295) by debbugs.gnu.org; 22 Feb 2017 19:08:32 +0000 Original-Received: from localhost ([127.0.0.1]:51520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcHA-0006VW-JH for submit@debbugs.gnu.org; Wed, 22 Feb 2017 14:08:32 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:52773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcH7-0006VI-Uq for 25295@debbugs.gnu.org; Wed, 22 Feb 2017 14:08:31 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v1MJ8SO6028992; Wed, 22 Feb 2017 14:08:28 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5EBC16092E; Wed, 22 Feb 2017 14:08:28 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Wed, 22 Feb 2017 11:15:35 -0500") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5955=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5955> : inlines <5713> : streams <1734076> : uri <2381573> 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:129661 Archived-At: > Most of the time, the speed of printing is not important. > But I suspect there are cases where people print a lot of data > and the speed of printing is crucial. Indeed. I know `C-h v load-history` is often sluggish, for example, because of the size of the value. I've been trying my cl-print code and the speed is clearly inferior to the C code, but at least in the case of C-h v the main slowdown comes from the prettifying step that happens after printing (where we insert newlines and indent the result), so while it gets measurably slower, the impact might be tolerable. Clearly, for cases such as when the byte-compiler wants to print the result into a .elc file, or when we want to save an undo-log in a file, speed will be very important and my cl-print is unlikely to be good enough. That's why I was suggesting that maybe we should have 2 printers: a fast one in C for the `print-readably` case, and a slower but customizable one in Elisp for "human consumption". Stefan