Philip Martin wrote:
> 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.

Thanks, Philip.  I fixed this by using the iterpool in this function and
then copying to result_pool, and fixed up the other two points you
mentioned.

Committed revision 1051475.

- Julian


Reply via email to