pili's blog

By pili, history, 20 months ago, In English

GraalVM offers substantial performance benefits over HotSpot for the Java developers out there.

Can we get GraalVM CE as an option?

https://www.fineconstant.com/posts/comparing-jvm-performance/

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Example submission that could have succeeded in C++ but timed out in Java:

https://codeforces.com/contest/1697/submission/160345089

Very easy problem. Very standard solution.

  • »
    »
    12 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You probably want to use buffered input and output.

    • »
      »
      »
      12 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      The input is buffered with BufferedInputStream.

      I agree that System.out.println could be buffered instead of line-flushed, but the number of invocation of output is so much smaller than that of the input, so my intuition is that it wouldn't matter that much.