HP3000-L Archives

April 2004, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Vance, Jeff H (Cupertino)" <[log in to unmask]>
Reply To:
Vance, Jeff H (Cupertino)
Date:
Mon, 26 Apr 2004 17:18:40 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
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 *

ATOM RSS1 RSS2