In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Fast Dynamic Array Building

Just in case there are developers who still use angle brackets instead of string concatenation operators to build up a dynamic array (perhaps because of their slightly improved aesthetic appeal), be aware that although the < -1 > syntax is easy and convenient to use, it can be up to TWENTY or THIRTY times slower than direct string concatenation, especially when used to construct a dynamic array in a loop.

Since the < -1 > syntax can be used to insert values into the centre of a larger array, it always finds the position to insert at by counting delimiters on every iteration. This results in the spectacular performance difference witnessed when the array itself is large.

(Volume 4, Issue 8, Page 14)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel