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

[REBOL] Re: Trimming values from a series?

From: greggirwin:mindspring at: 25-Jul-2002 9:06

Try this out. The datatype affects the performance greatly. b: make block! 10000 h: make hash! 10000 l: make list! 10000 repeat i 10000 [append b random i] repeat i 10000 [append h random i] repeat i 10000 [append l random i] t: now/time/precise loop 20 [unique b] loop 20 [unique b] loop 20 [unique b] print now/time/precise - t t: now/time/precise loop 20 [unique h] loop 20 [unique h] loop 20 [unique h] print now/time/precise - t t: now/time/precise loop 20 [unique l] loop 20 [unique l] loop 20 [unique l] print now/time/precise - t --Gregg