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

number of iterations limited by type #99

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

FObersteiner
Copy link
Collaborator

addresses #98

Copy link
Collaborator Author

@FObersteiner FObersteiner left a comment

Choose a reason for hiding this comment

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

pub const MAX_N_ITER = 100_000;

might rename this to "DEFAULT_MAX_N_ITER"

@FObersteiner FObersteiner marked this pull request as draft February 4, 2025 19:01
@FObersteiner FObersteiner marked this pull request as ready for review February 5, 2025 19:48
@FObersteiner
Copy link
Collaborator Author

FObersteiner commented Feb 5, 2025

OK looks fine for me now. Ended up making a larger re-write of the whole spin-up phase. Runs much more efficient now, spin-up only runs until the time budget is depleted or N_MAX_ITER exceeded. The actual N to run is chosen so that the time budget is used completely, instead of using some rather arbitrary-looking power-of-two. I think this code was from back in the days where there was no time budget.

@FObersteiner FObersteiner requested a review from bens February 6, 2025 06:10
@FObersteiner FObersteiner added the enhancement New feature or request label Feb 6, 2025
@hendriknielaender
Copy link
Owner

Man looks great! Liked the refactoring

@FObersteiner
Copy link
Collaborator Author

FObersteiner commented Feb 7, 2025

Man looks great! Liked the refactoring

Thanks! I'll wait with the merge until the weekend if @bens wants to have a look since he contributed the runner implementation (at least the part I modified).

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

Successfully merging this pull request may close these issues.

2 participants