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:03:26 UTC
[jira] [Created] (ATLAS-1471) Avoid unnecessary overheads in debug
log calls
Madhan Neethiraj created ATLAS-1471:
---------------------------------------
Summary: Avoid unnecessary overheads 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)