From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Enhancement suggestion: prin1 extension mechanism
Date: Sun, 14 Sep 2008 15:35:34 -0400 [thread overview]
Message-ID: <jwvprn6bk37.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m23ak3697k.fsf@gmail.com> (Helmut Eller's message of "Sat, 13 Sep 2008 23:13:03 +0200")
>> I fear it'd be difficult to make it work without incurring a significant
>> performance overhead.
> If the table is nil you could use the default hardcoded printer without
> lookups.
In many important cases (e.g. CL has been loaded), the table wouldn't be
nil, and performance should still be good.
> If the entries in the table can be accessed from Lisp code, we could
> remember the default print function for a type before installing a
> custom printer. E.g. if a vector doesn't have the special symbol in the
> first entry, we could call the previously remembered default printer
> instead of iterating manually over the vector. Recursive calls to print
> would again use the custom print function.
I don't know what you're talking about. I'd probably understand better
with a piece of code.
> It seems to me that, compared to testing for circularity, those table
> lookups would only introduce a minor slowdown.
Testing for circularity is indeed too slow right now. That should be
fixed as well.
> And if someone produces so much output the that it takes to long to
> print, he probably doesn't want to read it anyway :-)
But it's difficult for Emacs to find ou before it's too late.
Stefan
next prev parent reply other threads:[~2008-09-14 19:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-11 3:25 Enhancement suggestion: prin1 extension mechanism Eric M. Ludlam
2008-09-13 0:30 ` Richard M. Stallman
2008-09-14 15:47 ` Re[2]: " Eric M. Ludlam
2008-09-15 13:23 ` Richard M. Stallman
2008-09-15 16:31 ` Ted Zlatanov
2008-09-13 2:22 ` Stefan Monnier
2008-09-13 11:13 ` Helmut Eller
2008-09-13 19:22 ` Stefan Monnier
2008-09-13 21:13 ` Helmut Eller
2008-09-14 19:35 ` Stefan Monnier [this message]
2008-09-14 22:09 ` Helmut Eller
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=jwvprn6bk37.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eller.helmut@gmail.com \
--cc=emacs-devel@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.