[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inlining enabled in guile-vm: things get faster
From: |
Andy Wingo |
Subject: |
inlining enabled in guile-vm: things get faster |
Date: |
Sun, 25 May 2008 23:41:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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/
- inlining enabled in guile-vm: things get faster,
Andy Wingo <=