4 ms·
How do webservers solve this problem and why can't CLI programsw do the same? Invoking a Java program could connect to a running jvmd daemon
by judk 13y ago
How do webservers solve this problem and why can't CLI programsw do the same? Invoking a Java program could connect to a running jvmd daemon
- Jtsummers 13y agoThey "solve" it by being long running applications. When GP says CLI they likely mean things like grep or cat or other command line tools, not just interfaces, that tend to run in a very short time. A Java implementation would see a lot of extra time spent on just the startup. Consider writing a bash script that calls out to grep for each of a bunch of different files (an example, better ways, but go with it). Say it ran grep 100 times, jgrep at 100ms startup time would take 10s longer just on the java startup time, ignoring any other performance differences.
- hansjorg 13y agoA project which does exactly that: http://www.martiansoftware.com/nailgun/ http://www.martiansoftware.com/nailgun/