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

not too short, not too long #305

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

not too short, not too long #305

wants to merge 2 commits into from

Conversation

siebrenf
Copy link
Member

The original code already skips sequences that are too short (if (j_max < 0) { j_max = 0;}). Could be combined with #304 for slightly faster rejection.

This PR prints a message and returns an empty list if the sequence is too long to compute everything in the stack. We could also compute everything in the heap (code is there, just commented out). With some very rudimentary testing, the time loss of using the heap seems ~2%.

Finally, I fixed the linting and compilation warnings that were bugging me.

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.

1 participant