[PATCH] commit: increase perf by building a new addlist instead of editing the old one

Matt Mackall mpm at selenic.com
Wed Nov 28 20:01:11 CST 2012


On Thu, 2012-11-29 at 00:03 +0000, Durham Goode wrote:
> Just fyi, I did some basic research into various ways of string building
> in python.
> 
> In the past, join was fastest (python 2.2:
> http://www.skymind.com/~ocrow/python_string/), but in more recent versions
> of python it seems straight up string concatenation is just as fast
> (python 2.7: 
> http://stackoverflow.com/questions/2414667/python-string-class-like-stringb
> uilder-in-c-sharp).

Might depend on the OS and/or library allocator and/or size and/or
existing fragmentation:

http://markmail.org/message/7xmw3kgda7c2qxlu

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list