You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (JIRA)" <ji...@apache.org> on 2019/03/06 10:17:00 UTC
[jira] [Created] (CALCITE-2897) Reduce expensive calls to
Class#getSimpleName
Stamatis Zampetakis created CALCITE-2897:
--------------------------------------------
Summary: Reduce expensive calls to Class#getSimpleName
Key: CALCITE-2897
URL: https://issues.apache.org/jira/browse/CALCITE-2897
Project: Calcite
Issue Type: Improvement
Components: core
Affects Versions: 1.18.0
Reporter: Stamatis Zampetakis
Assignee: Stamatis Zampetakis
Fix For: 1.19.0
Class#getSimpleName method performs string manipulation operations, among other things, which has a noticable impact on performance when called repeatedly. In various cases the calls to this method can be avoided easily by using precomputed fields.
One place where this method really affects performance is inĀ [RuleQueue#addMatch|https://github.com/apache/calcite/blob/92562a0f213fc1edc66e25f9c88e15bacb9085df/core/src/main/java/org/apache/calcite/plan/volcano/RuleQueue.java#L333].
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)