@kgena_ua Btw the fso calls can be replaced with this on SMP
utils.IsFile(file);
utils.IsDirectory(folder);
And providing codepage on ReadTextFile would be faster.
regor, thanks.
kgena_ua will have to add profilers at multiple points to see where the problem is
what is it.
I'm sorry I'm not English speaking. sometimes there are problems in understanding.
Dont worry, ask me anything you don't understand.
var profiler = new FbProfiler('MY CODE 1');
.... code 1 that might be slow
profiler.Print();
...
var profiler = new FbProfiler('MY CODE 2');
.... code 2 that might be slow
profiler.Print();
-> on console
[17:31:01] Spider Monkey Panel v1.4.1-dev+0f2108d4: profiler (MY CODE 1): 10ms
[17:31:01] Spider Monkey Panel v1.4.1-dev+0f2108d4: profiler (MY CODE 2): 1500ms
// Code 2 may have problems?
That will show you why your code is slow t in SMP.
More notes:
- create_history_array -> add profiler?
- load_json_data -> add profiler?, add codepage to utils.readText (faster)
- save_json_data -> replace fso with utils.writeText and force codepage utf-8 (faster)