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

Make run parameters explicit #638

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Make run parameters explicit #638

merged 1 commit into from
Mar 19, 2025

Conversation

jeltsch
Copy link
Collaborator

@jeltsch jeltsch commented Mar 18, 2025

This pull request removes defaultRunParams in favor of explicit specification of run parameters.

Comment on lines 156 to 160
let runParams = RunParams {
runParamCaching = CacheRunData,
runParamAlloc = RunAllocFixed 10,
runParamIndex = indexType
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was assuming we'd replace the IndexType argument to the unsafeCreateRunAt function by a RunParams

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I’m not completely sure what general picture you have in mind. I think that if we make all run parameters configurable here, we should do so also in other places. I’ve changed the code such that run parameters are now configurable in extras and only fixed in the tests and benchmarks. These changes are in 1552c8e.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The changes you made are what I had in mind

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great! 🙂

Comment on lines 45 to 51
runParams :: Index.IndexType -> RunBuilder.RunParams
runParams indexType =
RunBuilder.RunParams {
runParamCaching = RunBuilder.CacheRunData,
runParamAlloc = RunAcc.RunAllocFixed 10,
runParamIndex = indexType
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just use Index.Ordinary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in e858742.

@jeltsch jeltsch changed the title Remove defaultRunParams Make run parameters explicit Mar 19, 2025
@jeltsch jeltsch force-pushed the jeltsch/no-default-run-params branch from e858742 to 0cb4097 Compare March 19, 2025 17:28
@jeltsch jeltsch enabled auto-merge March 19, 2025 17:29
@jeltsch jeltsch force-pushed the jeltsch/no-default-run-params branch from 0cb4097 to 7f0631e Compare March 19, 2025 17:54
@jeltsch jeltsch added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit 04e58c7 Mar 19, 2025
27 checks passed
@jeltsch jeltsch deleted the jeltsch/no-default-run-params branch March 19, 2025 18:51
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