This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-09-26.07:32:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380180735.7.0.740735572714.issue19087@psf.upfronthosting.co.za>
In-reply-to
Content
> Mercurial has another implementation strategy for a similar thing:
> http://selenic.com/repo/hg/file/50d721553198/mercurial/util.py#l935

I found an interesting comment in the following issue:

"I think the trouble we get into is chunkbuffer() creates new large strings by concatenation and causes memory fragmentation. Keeping a list of chunks might be more efficient."

http://bz.selenic.com/show_bug.cgi?id=1842#c17

@Antoine: Do you know if your patch may reduce the memory fragmentation on "bytearray front-slicing"?
History
Date User Action Args
2013-09-26 07:32:15vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka
2013-09-26 07:32:15vstinnersetmessageid: <1380180735.7.0.740735572714.issue19087@psf.upfronthosting.co.za>
2013-09-26 07:32:15vstinnerlinkissue19087 messages
2013-09-26 07:32:15vstinnercreate