Ok_Specific_7749@alien.topB to LispEnglish · 2 years agoFibbonaci of 39 speed test.message-squaremessage-square17linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1message-squareFibbonaci of 39 speed test.Ok_Specific_7749@alien.topB to LispEnglish · 2 years agomessage-square17linkfedilinkfile-text
minus-squareventuspilot@alien.topBlinkfedilinkEnglisharrow-up1·2 years agoAt least with abcl you may want to consider using the builtin compiler for a considerable speedup, don’t know about the others: C:\>abcl CL-USER(1): (defun fib (x) (if (< x 2) 1 (+ (fib (- x 2)) (fib (- x 1))))) FIB CL-USER(2): (time (fib 39)) 86.97 seconds real time 0 cons cells 102334155 CL-USER(3): (compile 'fib) FIB NIL NIL CL-USER(4): (time (fib 39)) 8.958 seconds real time 0 cons cells 102334155 CL-USER(5):
minus-squareOk_Specific_7749@alien.topOPBlinkfedilinkEnglisharrow-up1·2 years agoIndeed using compile the time reduced to 6s. So one has to be careful before drawing conclusions.
At least with abcl you may want to consider using the builtin compiler for a considerable speedup, don’t know about the others:
Indeed using compile the time reduced to 6s.
So one has to be careful before drawing conclusions.