A performance question related to setting the position of non-visible objects

Which one is more costy?
Setting the position of everything (eventhough they’re not visible) or checking their visibility to decide which ones to set?

This doesn’t really matter btw. If you’re REALLY worried (and you shouldn’t be) setting the objects to inactive is the biggest boost (they are not rendered nor is their logic active) after that turning off their mesh render (since you are now saving draw calls but logic is still running) and finally simply putting them out of view (which will still draw the object as well as running it’s attached scripts).