comparison i18n/hggettext @ 20292:8dc254198a8f

changectx: increase perf of walk function When running 'hg cat -r . <file>' it was doing an expensive ctx.walk(m) which applied the regex to every file in the manifest. This changes changectx.walk to iterate over just the files in the regex, if no other patterns are specified. This cuts hg cat time by 50% in our repo and probably benefits a few other commands as well.
author Durham Goode <durham@fb.com>
date Tue, 14 Jan 2014 13:49:19 -0800
parents 80deae3bc5ea
children 2516bba643e7
comparison
equal deleted inserted replaced
20291:7d589d923b8a 20292:8dc254198a8f