[Python-Dev] More compact dictionaries with faster iteration (original) (raw)

fwierzbicki at gmail.com fwierzbicki at gmail.com
Tue Dec 11 00:13:14 CET 2012


On Mon, Dec 10, 2012 at 10:01 AM, Armin Rigo <arigo at tunes.org> wrote:

Technically, I could see Python switching to ordered dictionaries everywhere. Raymond's insight suddenly makes it easy for CPython and PyPy, and at least Jython could use the LinkedHashMap class (although this would need checking with Jython guys). I honestly hope this doesn't happen - we use ConcurrentHashMap for our dictionaries (which lack ordering) and I'm sure getting it to preserve insertion order would cost us.

-Frank



More information about the Python-Dev mailing list