From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
Subject: Half-compiled, slow gnus-cus.elc
Date: Wed, 31 Jul 1996 14:22:42 +0200 (MET DST) [thread overview]
Message-ID: <199607311222.OAA29071@bombur2.uio.no> (raw)
gnus-cus.el uses backquote in (calculate ...) forms, which are not
compiled. Backquote is pretty slow; it must first compute the form to
be executed and then execute it.
Possible fixes:
In custom.el, define a byte-optimizer for custom-declare:
(eval-and-compile
(put 'custom-declare 'byte-optimizer
'(function which parses the custom form and
byte-compiles the (calcuate ...) part )))
I don't know how hard that would be, I don't know the exact syntax of a
custom-declare form.
Or, in gnus-cus.el, use something like this:
(eval-when-compile (require 'bytecomp))
(custom-declare
`(... ,(cons 'calculate
(byte-compile-sexp '(form to be calcuated)))))
Or simply don't use backquote.
It might also be an idea to push for modifying bytecomp somewhat: Define
(quote-form ...) which quotes a form to be compiled, similar to
(function ...) which quotes a function to be compiled. Then the code
above wouldn't have to refer to bytecomp:
(custom-declare
`(... ,(cons 'calculate
(quote-form (form to be calcuated)))))
Regards,
Hallvard
next reply other threads:[~1996-07-31 12:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-31 12:22 Hallvard B Furuseth [this message]
1996-07-31 12:26 ` Hallvard B Furuseth
1996-08-01 20:30 ` Lars Magne Ingebrigtsen
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=199607311222.OAA29071@bombur2.uio.no \
--to=h.b.furuseth@usit.uio.no \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).