]> git.ipfire.org Git - thirdparty/rsync.git/commit
Reduce memory usage (#235)
authorJindřich Makovička <makovick@gmail.com>
Fri, 1 Oct 2021 19:04:59 +0000 (21:04 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 19:04:59 +0000 (12:04 -0700)
commitae1f002999fc060178ef00d10cc021404a428e41
tree8e5562766de7e5b63362d00424f2f7c3ddb8b19c
parent3911c2386623e1fbd7e985f641c1cee6ac21e067
Reduce memory usage (#235)

In 2004, an allocation optimization has been added to the file
list handling code, that preallocates 32k of file_struct pointers
in a file_list. This optimization predates the incremental
recursion feature, for which it is not appropriate anymore. When
copying a tree containing a large number of small directories,
using the incremental recursion, rsync allocates many short
file_lists. Suddenly, the unused file_struct pointers can easily
take 90-95% of the memory allocated by rsync.
flist.c
rsync.h