Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 1725

with appears to be faster to run then both instance_find and ds_list_find_value() by a significant margin

$
0
0
@FrostyCat in another thread threw some code at me which i made a small edit to and what i found was absolutely one sided performance wise but i want to ask if the third option, using a ds_list, can be further optimized, or if an entirely different method could be employed.

Code:
function instance_find_vs_with(n) {
  // Create instances
  repeat (n) {
    instance_create_layer(0, 0, layer, obj_subject);
  }
  show_debug_message("Testing with " + string(n) + "...
with appears to be faster to run then both instance_find and ds_list_find_value() by a significant margin

Viewing all articles
Browse latest Browse all 1725

Trending Articles