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

A more efficient and accurate memento and archive counts #284

Merged
merged 2 commits into from
Dec 15, 2017
Merged

A more efficient and accurate memento and archive counts #284

merged 2 commits into from
Dec 15, 2017

Conversation

ibnesayeed
Copy link
Contributor

This PR fixes #283 and improves #282 implementation.

By processing the output stream of Popen as it arrives we avoid having a large TM in memory as a string. It combines the process of counting mementos and archives in a single pass. Using a set for counting archives we eliminate the need of manually checking for existence of a key.

Note: The code is not tested as I don't have proper environment setup on my machine.

@machawk1
Copy link
Owner

Tested and merged. Thanks for the PR, @ibnesayeed!

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

Successfully merging this pull request may close these issues.

Naive TimeMap counting algorithm causes UI to display possibly inaccurate count
2 participants