[jira] [Comment Edited] (OFBIZ-10697) ControlEventListener improvement: check debug level

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-10697) ControlEventListener improvement: check debug level

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-10697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714749#comment-16714749 ]

Jacques Le Roux edited comment on OFBIZ-10697 at 12/10/18 4:19 PM:
-------------------------------------------------------------------

Hello [~mbrohl],

If you care about the impact of loggers on performance you should take a look at the [Beautiful Logger|https://github.com/forax/beautiful_logger] library by Remi Forax which implements a truly transparent logger. In a recent [Devoxx talk|https://www.youtube.com/watch?v=z5UkoLaW6ME] (in french) he showed that even doing {{if (Debug.logXXX())}} has a 3x slowdown compared to a no-op.


was (Author: mthl):
Hello [~mbrohl],

If you care about the impact of loggers on performance you should take a look at the [Beautiful Logger|https://github.com/forax/beautiful_logger] library by Remi Forax which implements a truly transparent logger. In a recent [Devoxx talk|https://www.youtube.com/watch?v=z5UkoLaW6ME] (in french) he showed that even doing {{if (Debug.logXXX()) {}}} has a 3x slowdown compared to a no-op.

> ControlEventListener improvement: check debug level
> ---------------------------------------------------
>
>                 Key: OFBIZ-10697
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10697
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk, Release Branch 17.12
>            Reporter: Michael Brohl
>            Assignee: Michael Brohl
>            Priority: Minor
>
> The Debug.logXXX statements should be preceded with a check for the debug level to optimize the performance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)