* inlining enabled in guile-vm: things get faster
@ 2008-05-25 21:41 Andy Wingo
2008-05-26 7:55 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2008-05-25 21:41 UTC (permalink / raw)
To: guile-devel
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-26 8:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-25 21:41 inlining enabled in guile-vm: things get faster Andy Wingo
2008-05-26 7:55 ` Ludovic Courtès
[not found] ` <7cc52ff20805260145o6ed917f4wafa617a5e656e0a3@mail.gmail.com>
2008-05-26 8:46 ` Fwd: " Andy Wingo
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).