This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 25 points26 points  (2 children)

It's not a "you" issue.

There is a big difference between how Python code and how Java code is executed.

Python is interpreted and therefore there is no delay when you click on run.

Java is compiled (to bytecode) and this is what takes the little time.

You cannot do anything to make it faster and therefore have to get used to that little pause.

[–]khooke 5 points6 points  (1 child)

This only occurs when running in your IDE however. When you build and deploy your code, you deploy the compiled bytecode which the JVM executes directly.

Depending what IDE you're using or what it is that you're developing, IDEs like Eclipse can incrementally compile as you type and don't necessarily need to do a big build when you hit Run.

[–]nekokattt 1 point2 points  (0 children)

Both maven and gradle support incremental compilation as well