Note that Mark is reporting results from D3.

> A=""
> FOR I=1 TO 50000
>     A<1,-1>=I
> NEXT I

> Style 2: <-1> attribute level then CONVERT to
> 253...............................41 seconds

UniVerse caches the last-accessed field position in a dynamic array.  On my
1.7 GHz pentium laptop,

0001: A = ""
0002: S = system(9)
0003: for I = 1 to 50000
0004:    A<-1> = I
0005: next I
0006: E = system(9)
0007: print E-S

reports 40, but that is in milliseconds.  Appending a 0 to make a loop
iteration count of 500,000

0001: A = ""
0002: S = system(9)
0003: for I = 1 to 500000
0004:    A<-1> = I
0005: next I
0006: E = system(9)
0007: print E-S

yields a result of 4.447 seconds.

Mark A. Baldridge
Principal Consultant
North American Lab Services
DB2 Information Management, IBM Software Group
(607) 351-5666
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to