I'd like to know, how to launch dfs on java, to make it work pretty fast. $$$n = 2\,300\,000$$$.
Submit 54911336, says that on codeforces (windows, java 1.8.0_162) time in dfs = 126ms
.
Locally (windows, java 11.0.1) i have time in dfs = 13913ms
. The difference is 100 times!
Petr (windows, java 1.8.0_181) gets 15 seconds.
Command line options are java -XX:NewRatio=5 -Xms8M -Xmx512M -Xss64M
. Taken from here.
How long it works for whom? (i'm interested in time, os/processor, java version, command line options)
How to reach 126ms locally?
UPD:
Locally if i add -XX:TieredStopAtLevel=1
(help) i get 387ms
.
Options "exactly as on codeforces" locally give me the same time 13913ms
$$$\pm\varepsilon$$$.