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

Flatten 'stats' map and simplify 'stats' logic #10

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

roclark
Copy link
Contributor

@roclark roclark commented Apr 5, 2017

The 'stats' map was inefficient and confuscated in its original form. This refactor flattens the map for easier unravelling, while also improving the performance of the collector by removing the nested loops in 'parseFile'. Additionally, this change allows for future potential scalability if the 'stats' map ever needs to be expanded. The logical structure of the map can now stay unchanged without impacting other code snippets.

Signed-Off-By: Robert Clark robert.d.clark@hpe.com

The 'stats' map was inefficient and confuscated in its original form. This refactor flattens the map for easier unravelling, while also improving the performance of the collector by removing the nested loops in 'parseFile'. Additionally, this change allows for future potential scalability if the 'stats' map ever needs to be expanded. The logical structure of the map can now stay unchanged without impacting other code snippets.

Signed-Off-By: Robert Clark <robert.d.clark@hpe.com>
@joehandzik
Copy link
Contributor

LGTM

@joehandzik joehandzik merged commit 7af78eb into HewlettPackard:master Apr 5, 2017
@roclark roclark deleted the refactor-stats-map branch April 5, 2017 15:56
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.

2 participants