You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ramesh Kumar Thangarajan (Jira)" <ji...@apache.org> on 2023/11/22 17:26:00 UTC
[jira] [Closed] (HIVE-27687) Logger variable should be static final as its creation takes more time in query compilation
[ https://issues.apache.org/jira/browse/HIVE-27687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramesh Kumar Thangarajan closed HIVE-27687.
-------------------------------------------
> Logger variable should be static final as its creation takes more time in query compilation
> -------------------------------------------------------------------------------------------
>
> Key: HIVE-27687
> URL: https://issues.apache.org/jira/browse/HIVE-27687
> Project: Hive
> Issue Type: Task
> Components: Hive
> Reporter: Ramesh Kumar Thangarajan
> Assignee: Ramesh Kumar Thangarajan
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Attachments: Screenshot 2023-09-12 at 5.03.31 PM.png
>
>
> In query compilation,
> LoggerFactory.getLogger() seems to take up more time. Some of the serde classes use non static variable for Logger that forces the getLogger() call for each of the class creation.
> Making Logger variable static final will avoid this code path for every serde class construction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)