GitHub user merlimat opened a pull request: https://github.com/apache/bookkeeper/pull/140
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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/merlimat/bookkeeper cache-journal-conf Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bookkeeper/pull/140.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #140 ---- commit 68d5e8322e466ec1aed61355e1415b09da4b7f1f Author: Matteo Merli <mme...@apache.org> Date: 2015-10-08T08:21:24Z BOOKKEEPER-1050: Cache journalFormatVersionToWrite when starting Journal ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---