Replies: 1 comment 2 replies
-
Not sure I get why? Try to use expr.Function() and only links will be copied. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a large number of built-in functions in my env - these are always present for every expression. I also have a smaller number of variables that I add to the env which are specific to the evaluation.
Right now, I have to copy all the built-in functions into a fresh env, and then add the specific variables on every evaluation. This is quite expensive as there are many entries in the built-in functions map.
I was wondering if there was a more efficient way of doing this? E.g. have some kind of global env I could pass in (with the built-in functions) along with a separate invocation scoped env. This would avoid copying the global env each time.
Beta Was this translation helpful? Give feedback.
All reactions