Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Two implementations...

From: rgombert:essentiel at: 5-Feb-2003 21:10

From: "Gregg Irwin" <[greggirwin--mindspring--com]
>> Thanks Renaud! > Good stuff, and if you put the function in a context with ACCU as a > word in the context, you can avoid it being a global word.
Yes, it's a way ;-) In fact i just forgotten to include 'ACCU in the local variable definition block : fastfib: function [n /release][r accu][ function_body ] Just for those who haven't tried the script : * slowfib 35 : need about 49 seconds to return on my PC * fastfib/release 35 : can be run 170000 times winthin 49 seconds * fastfib 35 (not releasing each time) run 170000 times in 0.4 s -------------------------------- Renaud GOMBERT - www.essentiel.net