Y
Hacker News
new
|
ask
|
show
|
jobs
by
jdcarr
3780 days ago
What's your use cases where you've found startup time to be a significant issue?
4 comments
lobster_johnson
3780 days ago
Command-line programs.
link
jahewson
3780 days ago
Short-lived processes are an issue, because while startup time can be ok, code won't perform well until it's hot enough to be JITed.
link
pjmlp
3780 days ago
You can set the JIT threshold to 0, assuming the impact would still be worthwhile.
The alternative is a commercial JDK, almost all of them do support AOT compilation.
link
kasey_junk
3780 days ago
Long running processes without a lot of events can also deal with "startup issues", in that they won't trigger JIT.
link
pjmlp
3780 days ago
You can set the JIT threshold to 0, then it will JIT the full bytecode on startup, but it might perform worse.
link
_0w8t
3780 days ago
Fast compilation and minimal startup time in Go allows for very fast development feedback similar to what one gets with interpreted languages.
link