|
|||||||
QTIPS - Fast Dynamic Array BuildingJust 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) |
|||||||
| |||||||