relo
10-17-2007, 05:36 AM
Very slowly works with strings.
There is a dim from 5000 lines, a simple cycle of check borrows about 3 seconds.
dim(words_spr$, 9000);
words_count$=5000;
game_nastr.wordin$="GAME";
cn_p$ = false;
for (i$, 0, words_count$)
s$ = upper(words_spr$[i$]);
if (s$ == game_nastr.wordin$)
cn_p$ = true;
break;
end;
end;
How it is possible to accelerate such check?
There is a dim from 5000 lines, a simple cycle of check borrows about 3 seconds.
dim(words_spr$, 9000);
words_count$=5000;
game_nastr.wordin$="GAME";
cn_p$ = false;
for (i$, 0, words_count$)
s$ = upper(words_spr$[i$]);
if (s$ == game_nastr.wordin$)
cn_p$ = true;
break;
end;
end;
How it is possible to accelerate such check?