Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional hash environments? #296

Open
wlandau opened this issue Jan 21, 2025 · 0 comments
Open

Optional hash environments? #296

wlandau opened this issue Jan 21, 2025 · 0 comments

Comments

@wlandau
Copy link

wlandau commented Jan 21, 2025

It would be nice to opt into hash environments for R6 classes. (Maybe with a new hash argument in R6Class() which forwards to new.env().)

In targets, there are few R6 objects in a given R session (so not much memory overhead) but the members of those objects are accessed frequently. In fact, targets defines several important R6 classes whose members are also R6 classes, and repeatedly digging for a nested member creates overhead. Un-nesting this structure to eliminate the overhead is not feasible for the conceptual layout and internal design of targets. crew faces similar challenges (to a lesser degree).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant