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

Run as fast as possible #116

Open
badouralix opened this issue Dec 9, 2018 · 0 comments
Open

Run as fast as possible #116

badouralix opened this issue Dec 9, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@badouralix
Copy link
Owner

Description

Stop running super-mega-long solutions.

Design

Add a boolean flag --fast or --no-slow to the run command

Timeout

Discard solutions that take more than 5s to run.

We could also add a integer flag --timeout to override the default 5s timeout.

Slow flag

Add a file to list all slow solutions (blacklist) or all fast solutions (whitelist) and use this file to deduce solutions to be run.

All together

A naive approach for the timeout feature would be running the solution and force stop the execution after 5s. If a solution timeouts on the first input, it will likely timeout on all other inputs. Which means for each input, we run spend 5s for nothing.

This is improvable by flagging the solution as slow on the first input and avoid running it on other inputs. In a sense, this is a dynamic version of slow flag with a discrimination based on timeout.

@badouralix badouralix added the enhancement New feature or request label Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant