unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: guile-devel <guile-devel@gnu.org>
Subject: inlining enabled in guile-vm: things get faster
Date: Sun, 25 May 2008 23:41:27 +0200	[thread overview]
Message-ID: <m3iqx212pk.fsf@pobox.com> (raw)

Hello!

So it turns out that inlining of a number of operations was disabled in
guile-vm, from `apply' to `=' and other such things. I fixed this, as a
result of some profiling, and fixed some other things that showed up in
the profiles. The result is that e.g. the fibo test went from being
twice as slow as the interpreter to almost four times as fast, with no
change in its source code.

This is really interesting for me: how to make code faster, without
actually touching the code itself.

Anyway, available in my repo. Since then I've noticed that procedure
documentation doesn't show up in the compiled output. This breaks
`,help', among other things. Will be working on that and other
source-level debugging tasks, but probably will be a week and a half
before I can get back to this.

Happy hacking!

Andy

The following changes since commit 5feb8b6529f0bff937bd4504b6dd23e60bf65ac1:
  Andy Wingo (1):
        update news

are available in the git repository at:

  http://wingolog.org/git/guile-vm.git master

Andy Wingo (4):
      enable inlining; speed!
      Speed up the self-tail-recursive case (1x->2x)
      add inline macros for zero? and 1-
      Updated loop disassembly

 benchmark/lib.scm                    |  115 ++++++--------
 module/language/scheme/translate.scm |   13 +-
 module/system/base/compile.scm       |    3 +-
 module/system/il/Makefile.am         |    2 +-
 module/system/il/compile.scm         |   17 +-
 module/system/il/ghil.scm            |   23 +---
 module/system/il/inline.scm          |  206 +++++++++++++++++++++++
 module/system/il/macros.scm          |  302 ----------------------------------
 module/system/repl/repl.scm          |    2 +
 module/system/vm/Makefile.am         |    2 +-
 module/system/vm/assemble.scm        |    6 +-
 module/system/vm/bootstrap.scm       |   39 +++++
 module/system/vm/core.scm            |   16 +-
 module/system/vm/frame.scm           |    6 +-
 src/guilec.in                        |    3 +-
 src/vm.c                             |    4 +-
 src/vm_engine.h                      |   14 +-
 17 files changed, 338 insertions(+), 435 deletions(-)
 create mode 100644 module/system/il/inline.scm
 delete mode 100644 module/system/il/macros.scm
 create mode 100644 module/system/vm/bootstrap.scm
-- 
http://wingolog.org/




             reply	other threads:[~2008-05-25 21:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25 21:41 Andy Wingo [this message]
2008-05-26  7:55 ` inlining enabled in guile-vm: things get faster Ludovic Courtès
     [not found]   ` <7cc52ff20805260145o6ed917f4wafa617a5e656e0a3@mail.gmail.com>
2008-05-26  8:46     ` Fwd: " Andy Wingo

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=m3iqx212pk.fsf@pobox.com \
    --to=wingo@pobox.com \
    --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).