Reducing peak memory for commit

Martin Pool mbp at canonical.com
Tue Apr 20 02:57:12 BST 2010


On 20 April 2010 07:34, John Arbash Meinel <john at arbash-meinel.com> wrote:
> My feeling is that a good way to handle this would be to change the
> Transport.open_write_stream() api, such that the returned object must
> have a 'writelines()' attribute (rather than just .write()).

That sounds good, but please don't call it writelines.  It's a poorly
named API in Python (because they're not really lines at all) and we
don't need to replicate it.

I think someone grepped for unnecessary cases where we cast to and
from StringIOs but there may still be more.
-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list