CnPack Forum


 
Subject: Speed improvement for Units and Forms list
AHUser
新警察
Rank: 1



UID 1354
Digest Posts 0
Credits 11
Posts 8
点点分 11
Reading Access 10
Registered 2005-11-25
Status Offline
Post at 2005-11-25 06:12  Profile | Blog | P.M. 
Speed improvement for Units and Forms list

I have modified the ViewForms and ViewUnits formulars. They were a little bit too slow for about 300 files. First the content was filled twice and when you selected some items the dialogs became slower and slower because the statusbar/convert button update was execute for every single selected item.

Furthermore I added a faster FindFile() function to Utils/CnWizUtils.pas that improved the speed of these dialogs, too.

I have attached a patch against CVS (2005-11-24 23:00 GMT+0100)


Attachment: cnwizards_patch.zip (2005-11-25 06:12, 4.37 K)
Download count 1158
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2005-11-25 10:52  Profile | Blog | P.M. 
Nice! We've applied this patch, and found the speed has some improvment now.
Nevertheless, in our testing, we found that some units' structure of Unit/Form list have some problems. We plan to refactor them these days.

Thank you for your patching.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2005-12-1 22:51  Profile | Blog | P.M. 
Now we've do some optimization about the units/forms List.
Would you please download our latest nightly version to test the performance of these list function?

http://www.cnpack.org/download/u ... .9.175_Unstable.exe
Top
AHUser
新警察
Rank: 1



UID 1354
Digest Posts 0
Credits 11
Posts 8
点点分 11
Reading Access 10
Registered 2005-11-25
Status Offline
Post at 2005-12-14 10:30  Profile | Blog | P.M. 
Sorry for the late answer.

The dialogs have a good performance now. Only if the Forms-List is opened the first time it takes some time until Windows has cached the files. But that is acceptable.
Top
 




All times are GMT++8, the time now is 2024-10-11 11:25

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.013424 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP