Here's an interesting article on how to improve JVM startup speeds:
https://github.com/jruby/jruby/wiki/Imp ... artup-time
On my DS213j (ARM) it takes 2500ms to run filebot without CDS, and it goes down to 1900ms with CDS.
CDS (class data sharing) is enabled by default, you may need to generate the shared class data once with this command once:
Code: Select all
java -Xshare:dump
On 64-bit systems where only the Server VM is available these options can boost startup speed at the expense of runtime performance:
Code: Select all
-XX:+TieredCompilation -XX:TieredStopAtLevel=1
e.g. calling time filebot yields the following results:
Code: Select all
time filebot -script "g:println 'Hello World'"
Code: Select all
real 0m7.086s
user 0m11.336s
sys 0m0.254s
Code: Select all
real 0m3.596s
user 0m4.632s
sys 0m0.192s
