first code
run very slow
second code
runs very fast
the deference is in line 5
in the table.concat function
when i concat with " _ " the code runs very fast
when i concat with "_" the code runs so slow
i need to Concat with "_"
can i know why slow ??
is there a solution ??
PHP Code:
my_table = {}
for i = 1,300 do
num = Math.Random(111111111, 999999999);
Table.Insert(my_table, i, num);
end
Concated = Table.Concat(my_table, "_", 1, TABLE_ALL);
Dialog.Message("Notice", Concated, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
second code
PHP Code:
my_table = {}
for i = 1,300 do
num = Math.Random(111111111, 999999999);
Table.Insert(my_table, i, num);
end
Concated = Table.Concat(my_table, " _ ", 1, TABLE_ALL);
Dialog.Message("Notice", Concated, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
the deference is in line 5
in the table.concat function
when i concat with " _ " the code runs very fast
when i concat with "_" the code runs so slow
i need to Concat with "_"
can i know why slow ??
is there a solution ??
Comment