You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2017/01/18 05:04:26 UTC
[jira] [Updated] (ATLAS-1471) Avoid unnecessary overhead in debug
log calls
[ https://issues.apache.org/jira/browse/ATLAS-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated ATLAS-1471:
------------------------------------
Summary: Avoid unnecessary overhead in debug log calls (was: Avoid unnecessary overheads in debug log calls)
> Avoid unnecessary overhead in debug log calls
> ---------------------------------------------
>
> Key: ATLAS-1471
> URL: https://issues.apache.org/jira/browse/ATLAS-1471
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 0.7-incubating
> Reporter: Madhan Neethiraj
> Assignee: Madhan Neethiraj
>
> Many calls to LOG.debug() pass arguments that are returned from method calls. Many of these method calls perform non-trivial operations (like GraphHelper.string(), ReferenceableInstance.toShortString(), .. to name a few).
> Such overheads can be avoided simply by surronding LOG.debug() calls with "if (LOG.isDebugEnabled()". This can help improve performance, especially in debug calls made in heavily used/low-level methods - like GraphHelper.getProperty(), GraphHelper.getSingleValuedProperty(),
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)