Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
Expression.toString() is pretty heavy:
@Override
public String toString()
We didn't bother much about it, as it wasn't supposed to be called in runtime... Well it is sometimes:
SelectTranslator,java:
433 String labelPrefix = pathExp.toString().substring("db:".length());
And I am seeing this line occasionally in my app profiling reports. So we need to override "toString" at least for ASTObjPath and ASTDbPath with a lighter implementation