You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

1

Monday, July 12th 2010, 10:04pm

Unverhältnismäßig langer Kompilierungsvorgang

Hallo,

folgendes Phänomen:

ich erstelle ein frisches Jabaco-Projekt (SDI-Anwendung) und drücke F5. Die Jabaco-Form erscheint gewohnt schnell auf dem Bildschirm. In der Statuszeile Jabacos steht u.a. "Total compilation: 0.157"

Nun möchte ich im Code mit XML arbeiten und importiere die benötigten Klassen

Source code

1
2
3
4
5
6
7
8
9
10
11
Import java.io.File;
Import javax.xml.parsers.DocumentBuilder;
Import javax.xml.parsers.DocumentBuilderFactory;
Import org.w3c.dom.Document;
Import org.w3c.dom.Element;
Import org.w3c.dom.Node;
Import org.w3c.dom.NodeList;

Public Sub Form_Load()
   
End Sub


Danach drücke ich erneut F5. Nach 35 Sekunden erscheint die Jabaco-Form.

Form schliessen; erneut F5: "Total compilation: 15"

Form schliessen; erneut F5: "Total compilation: 5"

(bei weiteren Starts pendelt sich die Compilation-Zeit bei 5 Sekunden ein.)

5 Sekunden pro Programmstart. Da wird das Entwickeln und Testen schon mal zur Geduldsprobe. Gibt es Tricks, wie ich man den Kompilierungsvorgang beschleunigen könnte?

Kurios: Wenn ich die Imports oben wieder aus dem Code entferne, bleibt die Compilation-Zeit bei 5 Sekunden.

Achja: vielleicht wäre es auch ganz gut, wenn während des Kompilierens eine Sanduhr oder ähnliches eingeblendet werden könnte (damit man auch sieht, dass da was passiert.)

Danke im voraus & Grüße ... Peter

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Monday, July 12th 2010, 10:46pm

Hallo Peter,



ja klar, Du versuchst hier wohl einzelne Klassen zu importieren?

Jabaco Source

1
2
Import javax.xml.parsers.DocumentBuilder;
...


das geht besser über das Menü "Projekt"->"Projektverweise (Classpath) F1"



btw: Bemeckert Jabaco garnicht das ";" am Ende deiner Import-Zeile??



warums so lange dauert:

Der Import-Befehl im Jabaco Code möchte immer gleich den ganzen Namespace importieren, also alle Klassen die da drin sind. Die einzelne Klasse in der Angabe wird da einfach ignoriert.

Wenn ich das so mach wie du dann dauert das bei mir auch sehr lang:

Elapsed - Total Compilation: 11,481 - Dissolve Sourcefile: 11,45 - Process Methods: 0 - Search Methods: 0,016 - Parse Source: 11,419
Elapsed - Total Compilation: 6,349 - Dissolve Sourcefile: 6,333 - Process Methods: 0 - Search Methods: 0 - Parse Source: 0
Elapsed - Total Compilation: 2,075 - Dissolve Sourcefile: 2,059 - Process Methods: 0 - Search Methods: 0 - Parse Source: 0

(obwohl ... etwas schneller :P )



Gruß

OlimilO

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

3

Tuesday, July 13th 2010, 12:46am

Hallo OlimilO,

das geht besser über das Menü "Projekt"->"Projektverweise (Classpath) F1"

cool, Danke!

Ich bin davon ausgegangen, dass es egal ist, ob man die Klassen 'manuell' (also mittels Import) einbindet oder über den Classpath-Dialog. Zumindest im MS Visual Studio ist es so.

Jetzt klappt's auch mit der Geschwindigkeit! :thumbsup:

btw: Bemeckert Jabaco garnicht das ";" am Ende deiner Import-Zeile??

Ich war zu faul, die Semikola im Copy&Paste-Vorgang zu entfernen und dachte mir, der Compiler wird schon meckern, wenn es ihm nicht passt. Und offensichtlich war es ihm egal. :rolleyes:

(obwohl ... etwas schneller :P )

Angeber! :P

Danke für Deine schnelle Hilfe & Grüße ... Peter

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Tuesday, July 13th 2010, 12:53am

Quoted

...die Semikola im Copy&Paste-Vorgang zu entfernen und dachte mir, der Compiler wird schon meckern, wenn es ihm nicht passt. Und offensichtlich war es ihm egal.

Wäre vielleicht 'n nettes neues Feature für ne nächste Version, daß man auch einzelne Klassen via Import einbinden kann.

:D

Gruß

OlimilO

Rate this thread
WoltLab Burning Board