I iterate over a huge ds_list
and want to know if the condition (in this case the size of the ds_list
) will be calculated after every loop again and again (which would be bad for the performance). In that case I would store the result in a temporary variable.
for (var i = 0; i < ds_list_size(huge_list); i++) {
// doing something
}