As of now, Jexl inefficiently evaluates operators **+**,**-**,**/**,**%**,***** on Integer types as it casts operands to BigInteger type, applies operation and casts the result back. This for example, creates 3 BigInteger instances for a simple operation of 1+1. All evaluations on Integer types can be performed on corresponding **long** values, which is a magnitute of 200%-300% faster, in my measurments, and unneeded objects are not allocated on heap. Another point is request is to make selfAssign operators **overridable** in descendands of JexlArithmetic, instead of being able to be **oveloaded**, which can save the time by avoiding reflection.
[ Full content available at: https://github.com/apache/commons-jexl/pull/15 ] This message was relayed via gitbox.apache.org for [email protected]
