You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/08/15 01:55:00 UTC
svn commit: r985605 -
/subversion/branches/performance/subversion/libsvn_fs_fs/tree.c
Author: stefan2
Date: Sat Aug 14 23:55:00 2010
New Revision: 985605
URL: http://svn.apache.org/viewvc?rev=985605&view=rev
Log:
Minor optimization: don't use apr_psprintf for combining a number and
a string into a single string.
* subversion/libsvn_fs_fs/tree.c
(locate_cache): use a faster key construction function
Modified:
subversion/branches/performance/subversion/libsvn_fs_fs/tree.c
Modified: subversion/branches/performance/subversion/libsvn_fs_fs/tree.c
URL: http://svn.apache.org/viewvc/subversion/branches/performance/subversion/libsvn_fs_fs/tree.c?rev=985605&r1=985604&r2=985605&view=diff
==============================================================================
--- subversion/branches/performance/subversion/libsvn_fs_fs/tree.c (original)
+++ subversion/branches/performance/subversion/libsvn_fs_fs/tree.c Sat Aug 14 23:55:00 2010
@@ -58,6 +58,7 @@
#include "tree.h"
#include "fs_fs.h"
#include "id.h"
+#include "temp_serializer.h"
#include "private/svn_mergeinfo_private.h"
#include "private/svn_fs_util.h"
@@ -154,8 +155,8 @@ locate_cache(svn_cache__t **cache,
{
fs_fs_data_t *ffd = root->fs->fsap_data;
if (cache) *cache = ffd->rev_node_cache;
- if (key && path) *key = apr_psprintf(pool, "%ld%s",
- root->rev, path);
+ if (key && path)
+ *key = svn_fs_fs__combine_number_and_string(root->rev, path, pool);
}
}