STINNER Victor added the comment: > 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"? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19087> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com