[
https://issues.apache.org/jira/browse/BOOKKEEPER-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003478#comment-16003478
]
Matteo Merli commented on BOOKKEEPER-1050:
------------------------------------------
{noformat}
commit 61a5446b8923e5ce0b2a46891a385fd480275bac
Author: Matteo Merli <[email protected]>
Date: Tue May 9 13:24:53 2017 -0700
BOOKKEEPER-1050: Cache journalFormatVersionToWrite when starting Journal
Reading the journal version format from `ServiceConfiguration` each time is
inefficient.
`ServiceConfiguration` is based on Java properties which is based on a
String to object hashtable. Each read implies acquiring a mutex and converting
from object to int.
Author: Matteo Merli <[email protected]>
Reviewers: Enrico Olivelli <None>
Closes #140 from merlimat/cache-journal-conf
{noformat}
> Cache journalFormatVersionToWrite when starting Journal
> -------------------------------------------------------
>
> Key: BOOKKEEPER-1050
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-1050
> Project: Bookkeeper
> Issue Type: Improvement
> Reporter: Matteo Merli
> Assignee: Matteo Merli
> Priority: Minor
> Fix For: 4.5.0
>
>
> Reading the journal version format from {{ServiceConfiguration}} each time is
> inefficient.
> {{ServiceConfiguration}} is based on Java properties which is based on a
> String to object hashtable. Each read implies acquiring a mutex and
> converting from object to int.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)