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

fix a couple of type issues in minimization hash #51

Merged
merged 2 commits into from
Mar 9, 2018

Conversation

hendrikmuhs
Copy link
Contributor

fix a couple of namings and types in minimization hash as well as memory usage calculation

@coveralls
Copy link

coveralls commented Mar 4, 2018

Coverage Status

Coverage increased (+0.007%) to 92.456% when pulling 1527c5d on hendrikmuhs:minimizationhash-typefixes into 4775961 on KeyviDev:master.

// default
MinimizationHash<PackedState<>> *hash = new MinimizationHash<PackedState<>>();
BOOST_CHECK_EQUAL(hash->GetMemoryUsage(), (8171 + 2042) * sizeof(PackedState<>));
delete hash;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can allocate object in stack, or use std::unique_ptr here ?

Copy link
Member

@narekgharibyan narekgharibyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hendrikmuhs hendrikmuhs merged commit d47008a into KeyviDev:master Mar 9, 2018
@hendrikmuhs hendrikmuhs deleted the minimizationhash-typefixes branch April 5, 2020 13:23
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.

3 participants