Subject: | |
From: | |
Reply To: | Vance, Jeff H (Cupertino) |
Date: | Mon, 26 Apr 2004 17:18:40 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
ECHO ![ord(rtf_cctl)]!rtf_data
Yes, it is faster to combine multiple lines into a single line. To test
this:
setvar j 0
setvar savetime hpcpumsecs
while setvar(j,j+1) < 1000 do
echo ![ord(rtf_cctl)]!rtf_data >$null
endwhile
echo total time ![hpcpumsecs-savetime] msecs.
---- vs. ----
setvar j 0
setvar savetime hpcpumsecs
while setvar(j,j+1) < 1000 do
setvar junk ord(rtf_cctl)
echo !junk!rtf_data >$null
endwhile
echo total time ![hpcpumsecs-savetime] msecs.
I get this for output:
total time 1167 msecs.
total time 1262 msecs. -- not much faster, though.
HTH,
Jeff Vance, vCSY
> Assuming that the variables have the correct values, and the
> following 2 lines actually work, is it possible to combine
> them into one line, with the ORD function inside the ECHO
> statement ? If so, would it run any faster??
>
> SETVAR JUNK ORD(RTF_CCTL)
> ECHO ![___!JUNK]!RTF_DATA
...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|