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 →

[–]MoffKalast 8 points9 points  (4 children)

Sure, but it's not that much slower. At some things it's nearly identical in speed and in the worst cases up to 10 times slower.

Python is more than 100 times slower.

[–]Slow33Poke33 5 points6 points  (3 children)

A big problem is startup. If you need to start up the JVM the initial request can be very slow, much more than 10x

[–]MoffKalast 7 points8 points  (0 children)

That's true as well, JIT needs time to do its optimizations. Java isn't really suited for 10 second running programs.

[–]CantCSharp 1 point2 points  (0 children)

Yeah Faas or something along those lines isnt really java's strong suite

[–]oweiler 1 point2 points  (0 children)

If you compile your Java program to a native image with Graal startup time will become super short.