You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Matteo Merli (JIRA)" <ji...@apache.org> on 2017/05/09 17:17:04 UTC

[jira] [Created] (BOOKKEEPER-1050) Cache journalFormatVersionToWrite when starting Journal

Matteo Merli created BOOKKEEPER-1050:
----------------------------------------

             Summary: 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)