You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Michael Mior (JIRA)" <ji...@apache.org> on 2019/03/06 14:38:00 UTC

[jira] [Resolved] (CALCITE-2897) Reduce expensive calls to Class#getSimpleName

     [ 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)