Autor Beitrag
Spaceguide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Mi 18.04.07 08:50 
Auf meinem Notebook (P-M 1.73Ghz, 1GB) braucht der Compiler (D7) bei einem "Build All" für 380.000 Zeilen fast fünf Minuten und legt vor vielen Units recht lange Bedenkzeiten ein. Ich arbeite mit sehr vielen Units, da ich jede Klasse in eine eigene Units packe. Daher sind meine Uses-Anweisungen immer recht lang. Jetzt habe ich gelesen, dass der Compiler deshalb so langsam arbeitet. Kann das jemand bestätigen?
|M|Ich|Er|
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 34


Morfik Web OS, Delphi 6 EE
BeitragVerfasst: Mi 18.04.07 08:54 
bei mir dauert es beim compilieren immer solange wenn mein laufwerk c voll ist. ich nehme aber so gut es geht meisst nur eine unit, das ist auch wesentlich übersichtlicher.
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 18.04.07 11:07 
Versuche mal DelphiSpeedUp andy.jgknet.de/dspeedup/, das könnte dir weiterhelfen.

_________________
Na denn, dann. Bis dann, denn.
Spaceguide Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Mi 18.04.07 11:39 
Ne, hat wohl keinen Effekt auf den Compiler.
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 18.04.07 11:43 
Ich dachte, der Unit-Cache wird verbessert...

Aber es ist klar, das der Compiler bei langen uses-Klauseln immer langsamer wird, denn schließlich muss er alle Units laden und durchsuchen.

_________________
Na denn, dann. Bis dann, denn.
Dezipaitor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220



BeitragVerfasst: Do 19.04.07 19:42 
1.
Versuch doch mal, dem Compiler nur noch die bereits compilieren Units vorzulegen. Die Quelltexte, die du nicht brauchst dürfen für den Compiler nur noch als DCUs vorhanden sein.
Das funktioniert aber nur, wenn die Abhängigkeiten nicht zu groß sind.

2.
Compilere das Projekt auf einer RAM-Disk.

3.
Verwende Packages, die man einzeln kompilieren kann.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 20.04.07 20:54 
Also ich hab ein Projekt (OpenSource) mit 500000 Zeilen und das ist eigentlich selbst mit Build All in knapp ner Minute fertig.

Was Du schauen solltest, ist, inwiefern Du deine Abhängigkeiten-Listen verkürzen kannst. Ferner hilft auch DelphiSpeedUp ein wenig dem Compiler auf die Sprünge. Auch wenn die RAM-Disk wohl mit am meisten bringen dürfte, ist sie u.U. recht viel Einrichtungsaufwand (und sollte behutsam genutzt werden ;-)).

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.