Actions
Bug #3937
openAdiIRC slowing down on dialogs when user list is too heavy
Start date:
06/07/2018
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
Hello,
There is something strange that i saw, when having a huge userlist database and trying to open a dialog it slowing down the dialog actions (e.g: changing tabs or during the init progress) i cannot imagine how does userlist effecting that part, i tested and in other parts and it seems only in dialogs having that huge slow, i will provide some test codes to test it and see how it is acting thought.
Testing Dialog Code:
dialog test_table { title "Testing" size -1 -1 259 113 option dbu tab "Tab 1", 5, 5 3 252 105 list 1, 12 21 239 85, tab 5 size tab "Tab 2", 6 list 2, 11 21 240 85, tab 6 size } ON *:DIALOG:test_table:init: { var %i = 1 while (%i <= 100) { did -a $dname 1,2 test %i | inc %i } }
Adding items to userlist:
//var %t = 10000 | var %i = 1 | while (%i <= %t) { .auser testing %i | inc %i } | echo -a IS: Finished!
Try adding a huge database (about 5000-10.000) and run the dialog (/dialog -m test_table test_table) and try changing tabs or see the init progress, then remove the hole userlist database and try again to see how fast it will be.
Files
Actions