From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: Putting an end to "compiled closures"
Date: Mon, 02 Mar 2009 00:34:18 +0100 [thread overview]
Message-ID: <87bpskzukl.fsf@gnu.org> (raw)
In-Reply-To: 87ljs7cjtf.fsf@gnu.org
Hello!
ludo@gnu.org (Ludovic Courtès) writes:
> The attached patch creates a new type tag, `scm_tc7_gsubr', whereby the
> 24 MSBs are used to store gsubr arity information as returned by
> `SCM_GSUBR_MAKTYPE ()'. This makes cclos useless, which simplifies the
> code and reduces the overhead when creating and invoking such
> procedures.
I committed it:
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=e20d7001c3f7150400169fecb0bf0eefdf122fe2
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=54d14084e229f90b75475a866e3f458be30fa233
I also committed a simple benchmark for subr invocation [0]. The result
is as follows (truncated for clarity):
- before patch
("subr.bm: subr invocation: simple subr" 700000 total 0.99)
("subr.bm: subr invocation: generic subr" 700000 total 1.77)
("subr.bm: subr application: simple subr" 700000 total 1.75)
("subr.bm: subr application: generic subr" 700000 total 2.31)
- after patch
("subr.bm: subr invocation: simple subr" 700000 total 0.98)
("subr.bm: subr invocation: generic subr" 700000 total 1.38)
("subr.bm: subr application: simple subr" 700000 total 1.76)
("subr.bm: subr application: generic subr" 700000 total 2.16)
That is, roughly a 20% improvement on gsubr invocation.
Thanks,
Ludo'.
[0] http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=b786a5bbf825f61e04ccd9a54f93cb1e40ac67d9
next prev parent reply other threads:[~2009-03-01 23:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-16 0:22 Putting an end to "compiled closures" Ludovic Courtès
2009-02-23 22:10 ` Ludovic Courtès
2009-03-01 23:34 ` Ludovic Courtès [this message]
2009-03-08 16:18 ` Ludovic Courtès
2009-03-10 23:52 ` GC brokenness in `master' Ludovic Courtès
2009-03-11 0:08 ` Neil Jerram
2009-03-11 9:23 ` Ludovic Courtès
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpskzukl.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).