-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
I am trying to get more performance from my program by turning on optimizations. However performance seems to be largely unaffected. No extra optimization directives: $ larceny -- -e "(require 'srfi-0)" ising.scm -e "(time (main 10 100))" -e "(quit)" Larceny v0.97a4 (alpha test) (Mar 13 2009 15:30:01, precise:Linux:unified) <snip /> Words allocated: 341821384 Words reclaimed: 0 Elapsed time...: 4782 ms (User: 4575 ms; System: 32 ms) Elapsed GC time: 22 ms (CPU: 35 in 326 collections.) All possible optimizations turned on: $ larceny -- -e "(require 'srfi-0)(compiler-switches 'fast-unsafe)(benchmark-block-mode #t)" ising.scm -e "(time (main 10 100))" -e "(quit)" Larceny v0.97a4 (alpha test) (Mar 13 2009 15:30:01, precise:Linux:unified) <snip /> Words allocated: 341821874 Words reclaimed: 0 Elapsed time...: 4714 ms (User: 4498 ms; System: 38 ms) Elapsed GC time: 23 ms (CPU: 24 in 326 collections.) Turning on similar optimizations in Gambit resulted in a twofold speed increase. Then I tried to precompile my program with all optimizations: Larceny v0.97a4 (alpha test) (Mar 13 2009 15:30:01, precise:Linux:unified) Error: pass1-block must be modified to deal with the new regime for syntax environments. Entering debugger; type "?" for help. debug> Am I doing it wrong or is there something that is just not implemented yet here? Thanks, Marijn PS My code is here http://dynamo.iro.umontreal.ca/~gambit/wiki/images/9/90/Ising-20090315.scm - -- Gods do not want you to think, lest they lose existence. Religions do not want you to think, lest they lose power. Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML <http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm86/4ACgkQp/VmCx0OL2w+NQCbBEs8oGX6PGMof7LWWJZFc1dw 2cAAn1G9Qi/FTp20z8oAcL+TNK1DkJip =qF18 -----END PGP SIGNATURE----- _______________________________________________ Larceny-users mailing list Larceny-users@lists.ccs.neu.edu https://lists.ccs.neu.edu/bin/listinfo/larceny-users