Skip to content

Use dict instead of OrderedDict #6566

Description

@yarikoptic

dict is ordered now in versions of python we support. And according to https://realpython.com/python-ordereddict/ - dict seems to generally outperform OrderedDict in CPU and memory, and I don't think we use any of specific to OrderedDict functionality.

(git)lena:~datalad/datalad-maint[bf-sve]git
$> git grep OrderedDict | wc -l 
64

I think it would not hurt to just switch to just use dict.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceImprove performance of an existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions