Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimize included files and uses in Delphi

I try to increase performance of Delphi 2007 and Codeinsight. In the application there are 483 files added in the DPR file.

I don't know if it is imagination but I feel that I got better performance from Codeinsight by simply readd all files in the DPR.

I also think (correct me if I'm wrong) that all files that are included in a uses section also should be included in the DPR file for best performance.

My question is, does it exists a tool that scan the whole project and give a list what files are missing in the DPR file and what files can be removed? Would also be nice to have a list of uses that can be removed in the PAS files.

I found Pascal Analyzer that seems to be a good tool. Comments about this specially in this case is appreciated.

A related question is here.

Regards

like image 728
Roland Bengtsson Avatar asked Dec 28 '22 15:12

Roland Bengtsson


2 Answers

Regarding the unused units: cnWizards contains a uses cleaner which works very well

like image 148
mjn Avatar answered Dec 31 '22 12:12

mjn


From the same editor as Pascal Analyser, ICARUS is free and do this job in the simplest way.

http://www.peganza.com/#ICARUS

like image 26
TridenT Avatar answered Dec 31 '22 13:12

TridenT