Author: rhuijben
Date: Mon Apr 13 14:22:33 2015
New Revision: 1673202
URL: http://svn.apache.org/r1673202
Log:
Following up on r1673197, use another optimization suggested by stefan2.
* subversion/libsvn_fs_fs/dag.c
(svn_fs_fs__dag_has_props): Use expanded size to determine if the
representation stores properties vs just an empty list.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/dag.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/dag.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/dag.c?rev=1673202&r1=1673201&r2=1673202&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/dag.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/dag.c Mon Apr 13 14:22:33 2015
@@ -525,15 +525,9 @@ svn_fs_fs__dag_has_props(svn_boolean_t *
}
else
{
- apr_hash_t *proplist;
-
- /* ### Optimize further.
- Stefan2 suggested: prop_rep exists and is longer than 4 bytes
- */
- SVN_ERR(svn_fs_fs__get_proplist(&proplist, node->fs,
- noderev, scratch_pool));
-
- *has_props = proplist ? (0 < apr_hash_count(proplist)) : FALSE;
+ /* Properties are stored as a standard hash stream,
+ always ending with "END\n" (4 bytes) */
+ *has_props = (noderev->prop_rep->expanded_size > 4);
}
return SVN_NO_ERROR;