What is the best ordered dict implementation in python?

后端 未结 4 1061
挽巷
挽巷 2020-12-14 13:47

I\'ve seen (and written) a number of implementations of this. Is there one that is considered the best or is emerging as a standard?

What I mean by ordered dict is

4条回答
  •  旧巷少年郎
    2020-12-14 14:31

    collections.OrderedDict should now be widely available, but if performance is concern, you might consider using my package cyordereddict as an alternative. It's a direct port of standard library's OrderedDict to Cython that is 2-6x faster.

提交回复
热议问题