Is there any performance gain or is there any other? Is this compiler / VM specific? I'm using hotspot.
First: Depending on the static versus non-static performance
Second: In practice, it will not make any difference. Hotspot can choose to optimize in ways which calls fast steady for one method, makes non-static call fast for another.
Third: Most of the myths around static versus non-stationary are either based on the very old JVM (that hotspot does not have any of that optimization), or miss something about C ++ (Which uses a dynamic call access one more memory than a fixed call).
Comments
Post a Comment