You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2014/03/27 10:51:15 UTC

[jira] [Created] (JCR-3760) FileDataStore: reduce synchronization

Thomas Mueller created JCR-3760:
-----------------------------------

             Summary: FileDataStore: reduce synchronization
                 Key: JCR-3760
                 URL: https://issues.apache.org/jira/browse/JCR-3760
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-data
            Reporter: Thomas Mueller


The FileDataStore uses the following synchronization:

{noformat}
        synchronized (this) {
            if (!file.exists()) {
                return null;
            }
            ...
{noformat}

File.exists calls are very slow, it would be better if this check could be done outside of the synchronized block. I don't think this would cause any issues.



--
This message was sent by Atlassian JIRA
(v6.2#6252)