QNET icon indicating copy to clipboard operation
QNET copied to clipboard

Cache output parameters in Expression.create

Open goerz opened this issue 8 years ago • 0 comments

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).

goerz avatar Nov 28 '16 19:11 goerz