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

faster interval overlaps #56

Merged
merged 1 commit into from
Dec 11, 2017
Merged

faster interval overlaps #56

merged 1 commit into from
Dec 11, 2017

Conversation

tuxzz
Copy link
Contributor

@tuxzz tuxzz commented Jun 3, 2017

make interval overlap faster and cleaner

@tuxzz
Copy link
Contributor Author

tuxzz commented Jun 3, 2017

The build is only failing because of the issue between coverage and Python 3.2, not my fault.

(self.begin <= begin < self.end) or
(self.begin < end <= self.end)
)
return begin < self.end and end > self.begin
Copy link

Choose a reason for hiding this comment

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

More info about why this works: https://stackoverflow.com/a/3269471

@chaimleib chaimleib changed the base branch from master to dev December 11, 2017 04:56
@chaimleib
Copy link
Owner

Thanks! Very cool!

@chaimleib chaimleib merged commit 7fd3e7d into chaimleib:dev Dec 11, 2017
chaimleib added a commit that referenced this pull request Dec 11, 2017
faster interval overlaps #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.

3 participants