CnPack Forum


 
Subject: Startup speed improvements + AV bugfix
AHUser
新警察
Rank: 1



UID 1354
Digest Posts 0
Credits 11
Posts 8
点点分 11
Reading Access 10
Registered 2005-11-25
Status Offline
Post at 2006-2-11 19:19  Profile | Blog | P.M. 
Startup speed improvements + AV bugfix

If you disable a package in the IDE that also unloads a runtime package, the interior procedures of TCnFormFloatPropBar.UpdateControls (CnFormEnhancements.pas) are called with AObj = nil what causes the code to raise access violations.
The bugfix in the attachment fixes this by adding an "if AObj = nil then Exit" to these procedures.


When I start Delphi and the splash screen has disappeared, it takes a lot of time until the IDE is ready for user interaction. Without CnWizards the IDE reacts immediatelly after the splash screen has disappeared. The problem is in TUnitNameList.UpdateCaseFromModules (CnInputSymbolList.pas). There all units in the list are searched by linear search. I have changed this to BinSearch and now it's a lot faster.


Attachment: IdeEnhancements.zip (2006-2-11 19:19, 1.7 K)
Download count 1548
Top
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2006-2-12 19:25  Profile | Site | Blog | P.M. 
Thanks!

Your patch has applied, you can download the 189 version for testing.

For the first problem, I modified CnOtaGetCurrDesignedForm funciton in CnWizUtils unit instead.




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
 




All times are GMT++8, the time now is 2024-11-22 05:32

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

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