Hi All,
In response to a message I posted recently, many users expressed strong opinion
against the pre-assignment (or "declaration") of variables at the top of a subroutine.
Although I dont normally do this in my programs I would like to understand the impact
on memory fragmentation of repetitively DIMing an array or even doing a plain string
assignment (with no change in size) e.g:
SUBROUTINE ABC
FOR I = 1 TO 1000000
...
GOSUB PROCESS
NEXT
RETURN
PROCESS:
DIM A(100000)
D.LINE = STR("=",132)
....
RETURN
As opposed to:
SUBROUTINE ABC
DIM A(1000000)
D.LINE = STR("=",132)
FOR I = 1 TO 1000000
.....
GOSUB PROCESS
NEXT
RETURN
PROCESS:
....
RETURN
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download
Messenger Now
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users