[ https://issues.apache.org/jira/browse/BOOKKEEPER-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003453#comment-16003453 ]
ASF GitHub Bot commented on BOOKKEEPER-1050: -------------------------------------------- Github user merlimat commented on the issue: https://github.com/apache/bookkeeper/pull/140 @eolivelli Good point. This is a merge from a very old commit.. probably the alignment size was not there at the point. I'll fix that. > 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)