-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up data_dir load by making ConfigurationPasswordEncryptionHelpe…
…r faster ConfigurationPasswordEncryptionHelper.decode(String) is called by XstreamPersister -> StoreInfoConverter for each DataStoreInfo read from the data directory at start up time. This patch makes it use a ConcurrentMap internally instead of a HashMap, and removes the sychronization on its CACHE member variable. Additionally, and most importantly, caches the encryptable store parameter names by StoreInfo.getType() too, avoiding the fallback to full DataAccessFactory parameter lookup, which implies a rather expensive call to getCatalog() \ .getResourcePool().getDataStoreFactory((DataStoreInfo) info) As a result, loading time when there are lots of DataStoreInfos is reduced to about 1/3 of the time it takes without this patch.
- Loading branch information
Showing
2 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters