You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/03/06 10:57:23 UTC

[GitHub] [calcite] zabetak opened a new pull request #1090: [CALCITE-2897] Reduce expensive calls to Class#getSimpleName

zabetak opened a new pull request #1090: [CALCITE-2897] Reduce expensive calls to Class#getSimpleName
URL: https://github.com/apache/calcite/pull/1090
 
 
   1. Replace rule.getClass().getSimpleName() with rule.toString():
   (i) It conforms to the API VolcanoPlannerPhaseRuleMappingInitializer;
   (ii) It is safer to use when the same rule class has many instances;
   (iii) It is much more efficient.
   2. Precompute the class name for Boxed primitives and use where necessary.
   3. Remove Types#boxClassName since it is slightly redundant.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services