[ https://issues.apache.org/jira/browse/CALCITE-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Mior resolved CALCITE-2897. ----------------------------------- Resolution: Fixed > 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 > Priority: Major > Labels: pull-request-available > Fix For: 1.19.0 > > Time Spent: 20m > Remaining Estimate: 0h > > 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)