[PATCH 00 of 24] PYTHONHASHSEED=random
Antoine Pitrou
solipsis at pitrou.net
Mon Dec 17 20:00:10 UTC 2012
On Sun, 16 Dec 2012 23:33:55 +0100
Mads Kiilerich <mads at kiilerich.com> wrote:
>
> The most obvious solution to random iteration order is to define some stable
> order. The most obvious order is to sort the sequence. That adds a overhead,
> but it will mostly be sets that will be iterated anyway and it should
> especially not be a problem as long as we only enumerate and sort files, heads,
> branches, bookmarks etc.
>
> A more efficient future solution could be to use some kind of sorteddict.
Or an OrderedDict, which is part of the standard library (but written
in pure Python, hence not as fast and not as small as a plain dict).
Regards
Antoine.
More information about the Mercurial-devel
mailing list