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

Trimming the run containers so that they use less memory and are safer. #300

Merged
merged 4 commits into from Apr 15, 2021

Conversation

lemire
Copy link
Member

@lemire lemire commented Apr 14, 2021

runContainer16.myOpts is subject to data races as indicated in PR #299

It seems like this is an unnecessary component of the code that is better entirely removed. It is what the current PR does.

@lemire
Copy link
Member Author

lemire commented Apr 14, 2021

@fanyang01 Would you review my PR?

@lemire
Copy link
Member Author

lemire commented Apr 14, 2021

We seem to be doing a lot of memory size tests that are unnecessary.

@lemire
Copy link
Member Author

lemire commented Apr 14, 2021

These alloc. tests were pretty bad because they were platform dependent.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 86.937% when pulling fa1a7c2 on dlemire/trimrun into d626fca on master.

Copy link

@fanyang01 fanyang01 left a comment

Choose a reason for hiding this comment

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

TestRleRunSearch16 should not be deleted?

@@ -366,81 +366,6 @@ func TestRleRunReverseIterator16(t *testing.T) {
})
}

func TestRleRunSearch16(t *testing.T) {

Choose a reason for hiding this comment

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

This test case should not be deleted.

Copy link
Member Author

Choose a reason for hiding this comment

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

It relies on the old API. The function it tests has been deleted.

Copy link
Member Author

Choose a reason for hiding this comment

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

The test is described as '"RunContainer16.search should respect the prior bounds we provide for efficiency of searching through a subset of the intervals"'. We do not provide this functionality anymore, and it was never used in the actual engine.

@lemire
Copy link
Member Author

lemire commented Apr 15, 2021

@fanyang01 Thanks for the read-over. I will merge. We can add more tests later if we'd like.

@lemire lemire merged commit 1477e28 into master Apr 15, 2021
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.

None yet

3 participants