Kibor began to work at least five times faster.
This is especially noticeable on large scripts. The faster the work, the larger the size of the script.
But even such a small cycle
Цитата:
int t=gettime ();
int u;
for (int y=0; y <10000; y ++)
{
u ++;
}
messagebox (gettime () - t);
int u;
for (int y=0; y <10000; y ++)
{
u ++;
}
messagebox (gettime () - t);
runs several times faster than in previous versions ..
Also added manual control of the allocated memory for the broadcast.
If the script is large and Kibor broadcasts the script for a long time, it is possible to avoid this by constantly going into the settings - broadcasting and specifying the required amount in the field (allocating memory at startup) and restarting the Kibor.
Optimal allocation will be when the translation Kibor will not increase the consumed memory. You can see by going to the task manager. When working with small scripts, the forced allocation of memory can be reduced again.
This setting does not affect the assembled exe. In them, memory is allocated automatically the right size.
================================================== =====
Added the function dir
Displays the names of all the folders and / or files in the specified folder.
Output of all folders and files in C
Цитата:
Output of all folders in C
Цитата:
Output of all files in C
Цитата:
Output of all .txt files in C
Цитата:
string s [1000];
int a= dir ("c: \", #s [0], "file", "txt");
for (int n=0; n {
messagebox (s [n]);
}
int a= dir ("c: \", #s [0], "file", "txt");
for (int n=0; n {
messagebox (s [n]);
}
Returns the number of found objects or -1 if the string array is less than the number of objects found