You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Allman (JIRA)" <ji...@apache.org> on 2016/08/24 21:43:20 UTC

[jira] [Created] (SPARK-17231) Avoid building debug or trace log messages unless the respective log level is enabled

Michael Allman created SPARK-17231:
--------------------------------------

             Summary: Avoid building debug or trace log messages unless the respective log level is enabled
                 Key: SPARK-17231
                 URL: https://issues.apache.org/jira/browse/SPARK-17231
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 2.0.0
         Environment: Spark cluster with 8 r3.8xl EC2 worker instances
            Reporter: Michael Allman
            Priority: Minor


While debugging the performance of a large GraphX connected components computation, I found several places in the `network-common` and `network-shuffle` code bases where trace or debug log messages are constructed even if the respective log level is disabled. Refactoring the respective code to avoid these constructions except where necessary led to a modest but measurable performance improvement.

(Before and after executor stats to follow in screenshots.)

(PR to follow.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org