QNET
QNET copied to clipboard
Cache output parameters in Expression.create
If we can verify that Expression.create
is "idempotent", i.e. expr.create(*expr.args, **expr.kwargs) == expr
, we can cache not just the mapping of input parameters to the create
constructor, but also the ultimately resulting instantiation (such that the above idempotency rule is directly returned from cache).