Geometry nodes logs many socket values that the user can investigate in the node tree by hovering over sockets. Unfortunately, when there are lots of nodes, this can cause a lot of overhead (it's possible to create examples where the current logging mechanism takes up >70% of the total execution time. That's especially bad, because it is very unlikely that the user will look at these values generally.
This patch changes it so that only socket values are logged that correspond to sockets in node trees that are currently open in some node editor. This cuts down the number of logged values significantly, result in speedups and less memory consumption.
The downside is that when the user changes the visible node tree, it won't have any logged values until it is reevaluated. That seems like a good trade-off. I updated the tooltip message for that case to be a bit more precise. If user feedback suggests that this new behavior is too annoying, we can always add a UI option to log everything again. Probably shouldn't be added without actual need though as it is takes up space in the UI.