Efficiency in scripts (lock unused nodes?)

I am wondering (as a big script with lots of 3D begins to push my GPU to its max) if locking or turning of cooking on containers holding 3D environmentswill help free up resources.
I have a script that has a few containers, each containing a bunch of SOPS and Geo and renderers. I am trying to be efficient as possible in those environments (not animated SOPS very much etc). I only am using one of those 3D environments at once, and have a switch to select which is being used, and would like to have it so I can switch between the two environments quickly. Im trying to figure out of locking or turning off the cooking on the container will same up any resources? or is that if the container is not hooked up to the output directly, that it is not rendering anything in that container and therefor dont have to worry about it.
Thanks in advance!

Did you use “probe” in the Palette to see how much CPU and GPU each component is taking up?

(Stopping cooking of nodes does not free memory resources btw.)

I didn’t know about Probe. This is great! Thank you!