-
Hello, I often end up having somewhat-tight loops that access components through groups. When I go to refactor code from these loops out into functions, I hit the issue of not knowing how to pass the group around. Is the answer just to re-construct the group in every function? Or is there some type that I can use for the parameter? |
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Dec 18, 2021
Replies: 1 comment 1 reply
-
You can safely reconstruct groups in every function actually. The cost is that of looking up the pools in the registry and that's it, therefore pretty much negligible. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Net5F
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can safely reconstruct groups in every function actually. The cost is that of looking up the pools in the registry and that's it, therefore pretty much negligible.