You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2013/06/07 17:16:20 UTC

[jira] [Resolved] (LOG4J2-274) Wasted work in UUIDUtil initialization

     [ https://issues.apache.org/jira/browse/LOG4J2-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved LOG4J2-274.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-beta8

{noformat}
commit -m "[LOG4J2-274] Wasted work in UUIDUtil initialization." C:/svn/org/apache/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/UUIDUtil.java C:/svn/org/apache/log4j2/trunk/src/changes/changes.xml
    Sending        C:/svn/org/apache/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/UUIDUtil.java
    Sending        C:/svn/org/apache/log4j2/trunk/src/changes/changes.xml
    Transmitting file data ...
    Committed revision 1490676.
{noformat}

                
> Wasted work in UUIDUtil initialization
> --------------------------------------
>
>                 Key: LOG4J2-274
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-274
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta6
>         Environment: any
>            Reporter: Adrian Nistor
>            Assignee: Gary Gregory
>            Priority: Minor
>              Labels: patch, performance
>             Fix For: 2.0-beta8
>
>         Attachments: patch.diff
>
>
> The problem appears in Log4j 2.0-beta6 and in revision 1490297.  I
> attached a one-line patch that fixes it.
> In the static initialization block for "UUIDUtil", the loop over
> "sequences" should break immediately after "duplicate" is set to
> "true".  All the iterations after "duplicate" is set to "true" do not
> perform any useful work, at best they just set "duplicate" again to
> "true".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org