High memory usage when using svn_fs_make_file()
From: Lars Jessen <LJessen_at_mikrov.dk>
Date: Mon, 21 Jan 2008 13:03:56 +0100
Hi,
I'm trying to use the the svn_fs module to build a database of 10000
#include <apr_lib.h>
void CheckError(svn_error_t* error){
int main(){
svn_cmdline_init("svntest", stderr);
apr_allocator_t *allocator;
apr_pool_t *pool = svn_pool_create_ex(NULL, allocator);
svn_error_t* error;
error = svn_fs_initialize(pool);
svn_fs_t* fs;
error = svn_fs_open(&fs, repositoryPath, NULL, pool);
error = svn_fs_create(&fs, repositoryPath, NULL, pool);
// Get revision
svn_fs_txn_t *txn;
apr_pool_t *txpool = svn_pool_create_ex(pool, allocator);
error = svn_fs_begin_txn(&txn, fs, youngest_rev, txpool);
svn_fs_root_t* root;
std::cout << "creating files" << std::endl;
for(int i=0;i<1000;i++){
std::cout << "commit'ing" << std::endl;
const char* conflict;
std::cout << "ok" << std::endl;
svn_pool_clear(pool);
return 0;
The above code takes a long time to complete and memory usage peeks at
- Lars
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.