Philip Martin <philip.mar...@wandisco.com> writes: > Philip Martin <philip.mar...@wandisco.com> writes: > >>> + SVN_ERR(svn_io_file_checksum2(&file_info->sha1_checksum, >>> text_base_path, >>> + svn_checksum_sha1, result_pool)); >> >> How much memory is allocated when checksumming a file? That's all going >> into the long-lived result pool. Perhaps we need a svn_stream_checksummed3 >> that takes two pools? > > I mean svn_io_file_checksum3. I was trying to work out how much memory > was allocated.
There is a 16K buffer per checksum, so 32K per file. We need a scratch pool, either explicitly in this function (and copy the checksum to result_pool) or in svn_io_file_checksum3. -- Philip