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

Added support for inactive threshold #20

Merged
merged 7 commits into from
Feb 16, 2021

Conversation

eightants
Copy link

No description provided.

@eightants eightants requested a review from jay-khatri February 14, 2021 02:50
@eightants
Copy link
Author

Note: This still has the snapshot/ directory in the repo.

Copy link
Contributor

@jay-khatri jay-khatri left a comment

Choose a reason for hiding this comment

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

Looks good. Right now you're doing a ~3n pass over the interaction events; I think you could technically do all of this in one pass.

In other words, while building the intervals, keep track of the state of the previous interval [active/inactive]. Based on the state of the current interval, append/don't-append. You can also probably selectively choose to keep inactive intervals based on that threshold in the same pass.

But this is fine lol, doesn't really matter. A few small naming things.

@eightants eightants requested a review from jay-khatri February 16, 2021 15:12
@eightants eightants merged commit 67a42ec into master Feb 16, 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.

2 participants