-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
let runParams = RunParams { | ||
runParamCaching = CacheRunData, | ||
runParamAlloc = RunAllocFixed 10, | ||
runParamIndex = indexType | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! 🙂
runParams :: Index.IndexType -> RunBuilder.RunParams | ||
runParams indexType = | ||
RunBuilder.RunParams { | ||
runParamCaching = RunBuilder.CacheRunData, | ||
runParamAlloc = RunAcc.RunAllocFixed 10, | ||
runParamIndex = indexType | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use Index.Ordinary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in e858742.
e858742
to
0cb4097
Compare
0cb4097
to
7f0631e
Compare
This pull request removes
defaultRunParams
in favor of explicit specification of run parameters.