Windows Enums and lists vs variables. What is faster?

A

Aura

Guest
It would be better if you elaborate on the context a bit more.
 

JaimitoEs

Member
Basically the accessing speed of the data:

Variables:
Code:
variable1 = 20;
variable2 = " hello";
variable3 = 3000;
variable4 = 500;
List and enums :

Code:
enum variables
{
 force,
 name,
 healt,
 lives
}

list = ds_list_create();

list[| variables.force] = 20;
list[| variables.name] = "hello";
list[| variables.healt] = 30;
list[| variables.lives] = 500;
accessing :
Code:
strenght = variable1;

or

strenght = list[ variables.force];
 
Top