Kerry Thompson <[EMAIL PROTECTED]> wrote:

> So now you have three options--media, rtf, and html. I'd go with Mark's rtf
> or grimm's html, cuz copying the media is a memory-intensive operation you
> should use sparingly.

Hi Kerry,

I've just run a test using two text members.  The text of member("A") is the
same as the scriptText shown below.   Member("B") is a copy of member("A").
Here are the results from the Message window:

test
-- "media:  861"
-- "rtf:   2769"
-- "html:  2719"

In this instance, it looks like media is more than three times faster than
the others.  In addition, copying the html may not copy fonts correctly.

Cheers,

James

----------------------------------------------------------------------------

on test iterations
  
  if voidP (iterations) then
    iterations = 100
  end if
  
  i = iterations
  ms = the milliseconds
  repeat while i
    i = i - 1
  end repeat
  t0 = (the milliseconds - ms)
  
  i = iterations
  ms = the milliseconds
  repeat while i
    member("B").media = member("A").media
    i = i - 1
  end repeat
  t = (the milliseconds - ms - t0)
  put "media: "&t
  
  i = iterations
  ms = the milliseconds
  repeat while i
    member("B").rtf = member("A").rtf
    i = i - 1
  end repeat
  t = (the milliseconds - ms - t0)
  put "rtf: "&t
  
  i = iterations
  ms = the milliseconds
  repeat while i
    member("B").html = member("A").html
    i = i - 1
  end repeat
  t = (the milliseconds - ms - t0)
  put "html: "&t
end 



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to