Does boxing cause performance issues?
问题 I'm working on a project in which we are producing a language which compiles to java. The framework we are using (xtext) makes prolific use of boxing in its generated code. Specifically, if you have a statement like: int i = 1; int j = 2; int k = i + j; Then the compiled code looks like: IntegerExtensions.operator_plus(((Integer)i), ((Integer)j)) Now, in the project I'm working on, there are certain situations where particular basic binary operations are going to be extremely common