BigString (reducing peak memory)

Robert Collins robertc at robertcollins.net
Thu Nov 17 00:36:44 UTC 2011


On Thu, Nov 17, 2011 at 1:32 PM, Martin Pool <mbp at sourcefrog.net> wrote:
>> Why is the whole file needed in memory at once?
>> If it is read into a string, it would be quite easy to create a "virtual"
>> string handling "paging" of the file.
>
> If it's easy, please send us a patch :)
>
> The problem is not so much reading the file in multiple chunks rather
> than as a single string, but rather making sure that it is never
> combined back in to one chunk as it is processed in being moved
> between repository, working tree, network, etc.

... and dealing with network respositories too.

-Rob



More information about the bazaar mailing list