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

[REBOL] Re: How to use Hash index

From: greggirwin:mindspring at: 23-Aug-2003 8:55

Hi Robert, RMM> Hi, IIRC I once talked to Carl and he said, that everything in Rebol is RMM> hashed anyway. So I really don't know if there is a performance RMM> difference. Robert I see a pretty big difference with the following. (almost 3 seconds for blocks, and just ~.15 for hashes) x: copy [] insert/dup x "ABCDEFG" 250 b: append x ["AAAAAA" "BBBBBB" "CCCCCCC" "DDDDDD" "EEEEEE" "FFFFFFF"] h: make hash! b t: now/time/precise repeat i 100000 [select b "EEEEEE"] print ["block:" now/time/precise - t] t: now/time/precise repeat i 100000 [select h "EEEEEE"] print ["hash:" now/time/precise - t] t: now/time/precise repeat i 100000 [find b "EEEEEE"] print ["block:" now/time/precise - t] t: now/time/precise repeat i 100000 [find h "EEEEEE"] print ["hash:" now/time/precise - t] -- Gregg