Share
replace internally equal common subexpressions in
function
by the same reference to reduce memory consumption and return the number of times whereShare(function)
could replace a common subexpression.
See
Examples
"age" -> 18
and "sex" -> "F"
could be replaced once each times by the same reference internally:
Related terms
Compile, CompilePrint, OptimizeExpression
Implementation status
- 🧪 - experimental