subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1658195 - /subversion/trunk/subversion/libsvn_ra_svn/marshal.c
Date Sun, 08 Feb 2015 15:41:58 GMT
Author: stefan2
Date: Sun Feb  8 15:41:57 2015
New Revision: 1658195

URL: http://svn.apache.org/r1658195
Log:
* subversion/libsvn_ra_svn/marshal.c
  (svn_ra_svn__parse_proplist): Read the hash key as svn_string_t to
                                speed up hash construction.

Modified:
    subversion/trunk/subversion/libsvn_ra_svn/marshal.c

Modified: subversion/trunk/subversion/libsvn_ra_svn/marshal.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/marshal.c?rev=1658195&r1=1658194&r2=1658195&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/marshal.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/marshal.c Sun Feb  8 15:41:57 2015
@@ -1433,7 +1433,7 @@ svn_ra_svn__parse_proplist(const apr_arr
                            apr_pool_t *pool,
                            apr_hash_t **props)
 {
-  char *name;
+  svn_string_t *name;
   svn_string_t *value;
   svn_ra_svn_item_t *elt;
   int i;
@@ -1445,9 +1445,9 @@ svn_ra_svn__parse_proplist(const apr_arr
       if (elt->kind != SVN_RA_SVN_LIST)
         return svn_error_create(SVN_ERR_RA_SVN_MALFORMED_DATA, NULL,
                                 _("Proplist element not a list"));
-      SVN_ERR(svn_ra_svn__parse_tuple(elt->u.list, pool, "cs",
+      SVN_ERR(svn_ra_svn__parse_tuple(elt->u.list, pool, "ss",
                                       &name, &value));
-      svn_hash_sets(*props, name, value);
+      apr_hash_set(*props, name->data, name->len, value);
     }
 
   return SVN_NO_ERROR;



Mime
View raw message