Closed matthiasdiener closed 10 months ago
Is this mainly for measuring the compile time? If so, I wonder if we shouldn't force_evaluate
the arguments on the inside, since that could throw off the times. Maybe it should forbid passing unevaluated inputs?
Is this mainly for measuring the compile time?
Yes, another use case is debugging determinism/caching issues.
If so, I wonder if we shouldn't
force_evaluate
the arguments on the inside, since that could throw off the times. Maybe it should forbid passing unevaluated inputs?
Hmm, not sure. For profiling compile time, I think the measurement should be done inside the function anyways (so you can choose whether to profile .compile()
, or the function call, or both). I think moving the force_evaluation outside wouldn't really help much.
Questions for the review: