Rev Internal Data Structures

Richard Gaskin ambassador at fourthworld.com
Tue Dec 20 23:35:44 EST 2005


Sarah Reichelt wrote:
> Fields in a data stack that is hidden have almost the same access time
> as custom properties

It seems dependent on what you're doing.  Reads are faster with fields, 
but writes much slower:

on mouseUp
   put 1000 into n
   --
   put the millisecs into t
   repeat n
     put "hello world" into fld 1
     get word 2 of fld 1
   end repeat
   put the millisecs - t into t1
   --
   put the millisecs into t
   repeat n
     set the uTest of this cd to "hello world"
     get word 2 of the uTest of this cd
   end repeat
   put the millisecs - t into t2
   --
   put t1 && t2
end mouseUp


I've played with variants of the above, at times commenting out the 
writes and at other times the reads, and in both cases the results 
mystify me....

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list