Use std::tuple instead of ks::Tuple in entry points#955
Conversation
|
Can we be confident that this is fine from the point of view of performance? The reason for |
I'm confident that any difference won't be measurable. The main reasons for this:
Since the goal of this PR is to remove the |
|
Thanks for the explanation. I'm happy for you to proceed as you see fit. |
|
Happy to remove the logging, and happy with PR in general. |
2207346 to
9259ee2
Compare
f38ed46 to
b193f56
Compare
9259ee2 to
47940d5
Compare
47940d5 to
e8a7f37
Compare
This PR changes the entry points to use
std::tuple, as this is supported directly by pybind11. This would mean that we could remove the specialization forks::Tupleinknossos-pybind.h.(Edited: The following comment was resolved by #961.)
One difficulty: we are optionally logging the entry point arguments using
operator<<, but there is nooperator<<defined forstd::tuple. There are various ways we might fix this:operator<<forstd::tuple. This invasion ofstd::is technically illegal, but would probably work as long as no-one tries the same thing somewhere else.printfunction to use instead ofoperator<<.Any thoughts? (@awf?)