3 ms·
Chicken's default is fairly unoptimized; try higher optimization levels.
by dleslie 6y ago
Chicken's default is fairly unoptimized; try higher optimization levels.
- eddieh 6y agoOh dang...you're right $ csc -optimize-level 5 fib.scm $ time ./fib real 0m5.506s user 0m5.489s sys 0m0.010s I could get a few fractions of a second better playing with the stack size (4 MB was the best, 8 MB or above would segfault) $ csc -optimize-level 5 -stack-size 4m fib.scm $ time ./fib real 0m5.295s user 0m5.277s sys 0m0.011s Everything else was negligible or extremely varied.
- dleslie 6y agoYep, to get beyond that you basically have to stop writing scheme and start writing a tortured variant of Chicken, for performance. ;) I stopped writing Chicken scheme code a few years ago; it was fun due to the ease of interoperating with C, but I found Chibi a better fit for that niche eventually.