Marijn Schouten (hkBst)
2009-03-09 12:56:01 UTC
Hi,
I have some Scheme code that I'd like to run (pre-)compiled, but I'm probably
doing something wrong because I'm not seeing any speed increase in comparison to
simply running it.
To run the code I always use:
$ larceny -- -e "(require 'srfi-0)" ising.scm -e "(time (main 100))" -e "(quit)"
to compile the code I use:
$ larceny -- -e '(compile-file "ising.scm")' -e "(quit)"
which produces the file ising.fasl. I try to run the code with and without the
fasl existing, but in both cases it takes the same number of seconds to run.
The code is basically
http://dynamo.iro.umontreal.ca/~gambit/wiki/images/0/0d/Ising-20090308.scm
Marijn
- --
Sarcasm puts the iron in irony, cynicism the steel.
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
I have some Scheme code that I'd like to run (pre-)compiled, but I'm probably
doing something wrong because I'm not seeing any speed increase in comparison to
simply running it.
To run the code I always use:
$ larceny -- -e "(require 'srfi-0)" ising.scm -e "(time (main 100))" -e "(quit)"
to compile the code I use:
$ larceny -- -e '(compile-file "ising.scm")' -e "(quit)"
which produces the file ising.fasl. I try to run the code with and without the
fasl existing, but in both cases it takes the same number of seconds to run.
The code is basically
http://dynamo.iro.umontreal.ca/~gambit/wiki/images/0/0d/Ising-20090308.scm
Marijn
- --
Sarcasm puts the iron in irony, cynicism the steel.
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode