harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rustem Rafikov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-673) perf improving for util.logging.Logger
Date Tue, 27 Jun 2006 09:29:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-673?page=all ]

Rustem Rafikov updated HARMONY-673:

    Attachment: logging.patch

> perf improving for util.logging.Logger
> --------------------------------------
>          Key: HARMONY-673
>          URL: http://issues.apache.org/jira/browse/HARMONY-673
>      Project: Harmony
>         Type: Improvement

>   Components: Classlib
>     Reporter: Rustem Rafikov
>     Priority: Minor
>  Attachments: logging.patch
> I would like to suggest a patch improving performance of util.logging.Logger.
> Summary of changes:
> 1. Frequently (on each logging call) used internalIsLoggable method became not synchronized
and not  "walking" through parents if a logger should inherit a parent level. As setLevel
occures much rarely than log call it is preferable to inherit a parent level when setting
a parent and when changing a parent. internalIsLoggable uses int value of log level to avoid
extra call to Level.intValue() method.
> 2. Main log method uses getHandlers returning array of handlers on each logging call.
So, handlers.toArray(new Handler[0]) has been changed to handlers.toArray(new Handler[handlers.size()])
to avoid excessive creation of the array. It is much faster.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message