Y
Hacker News
new
|
ask
|
show
|
jobs
by
danellis
3721 days ago
That comes with a big memory cost, though. Also huge startup time, so not suitable for command line tools.
3 comments
pjmlp
3721 days ago
Just get an AOT compiler, plenty to choose from.
Also since Java 8 with tiered compilation, I wouldn't consider a few ms a huge startup time.
link
catfest
3721 days ago
I don't think startup time is an issue, and memory is definitely manageable - check out LMAX Disruptor (
https://lmax-exchange.github.io/disruptor/
)
link
sievebrain
3721 days ago
Java startup time is ~50msec, which for command line tools is fine.
link
kgabis
3721 days ago
Unless you run them in a loop, which is not that uncommon.
link
Also since Java 8 with tiered compilation, I wouldn't consider a few ms a huge startup time.