Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory usage compared to collections.OrderedDict? #7

Closed
andresriancho opened this issue May 12, 2015 · 2 comments
Closed

Memory usage compared to collections.OrderedDict? #7

andresriancho opened this issue May 12, 2015 · 2 comments

Comments

@andresriancho
Copy link

@shoyer have you measured if there is any difference between collections.OrderedDict vs. cyordereddict in terms of memory usage? Seen the code and it seems to be a "line to line port", so memory usage should be the same?

@shoyer
Copy link
Owner

shoyer commented May 12, 2015

I have not done these tests, but indeed it's a line to line port so I expect memory usage would be almost identical. cyordereddict.OrderedDict objects do probably use a slightly smaller fixed amount of memory per object, because they use slots instead of a dictionary to store their attributes.

@andresriancho
Copy link
Author

awesome, thanks for the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants