Skip to main content

All Questions

Tagged with
0 votes
1 answer
215 views

Is it possible to estimate performance or cyclomatic complexity from decompiled code?

Let's say I have two alternative implementations of an algorithm, or two strategies. I could of course benchmark them with e.g. jmh. But is there any information I could get by looking at the ...
garci560's user avatar
  • 3,133
3 votes
3 answers
2k views

What are the differences of explicit and implicit instantiating String class in java

I have been told that creating String instance like this String s = new String("Don't do this"); // explicit has a performance problem since it creates two instance of string on for double quoted ...
Morteza Adi's user avatar
  • 2,453
0 votes
3 answers
335 views

Time complexity measure of JDK class methods

Is there an established way of measuring (or getting an existing measure) a JDK class method complexity? Is javap representative of time complexity and to what degree. In particular, I am interested ...
amphibient's user avatar
  • 30.7k